Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged Added machine gun weapon & VFX Moved third party code to Plugins folder to improve compile times
This commit is contained in:
parent
2a0fe34611
commit
dbc522a224
2105 changed files with 7033 additions and 1141 deletions
|
|
@ -1,42 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace UniRx.Diagnostics
|
||||
{
|
||||
public static class ObservableDebugExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Debug helper of observbale stream. Works for only DEBUG symbol.
|
||||
/// </summary>
|
||||
public static IObservable<T> Debug<T>(this IObservable<T> source, string label = null)
|
||||
{
|
||||
#if DEBUG
|
||||
var l = (label == null) ? "" : "[" + label + "]";
|
||||
return source.Materialize()
|
||||
.Do(x => UnityEngine.Debug.Log(l + x.ToString()))
|
||||
.Dematerialize()
|
||||
.DoOnCancel(() => UnityEngine.Debug.Log(l + "OnCancel"))
|
||||
.DoOnSubscribe(() => UnityEngine.Debug.Log(l + "OnSubscribe"));
|
||||
|
||||
#else
|
||||
return source;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Debug helper of observbale stream. Works for only DEBUG symbol.
|
||||
/// </summary>
|
||||
public static IObservable<T> Debug<T>(this IObservable<T> source, UniRx.Diagnostics.Logger logger)
|
||||
{
|
||||
#if DEBUG
|
||||
return source.Materialize()
|
||||
.Do(x => logger.Debug(x.ToString()))
|
||||
.Dematerialize()
|
||||
.DoOnCancel(() => logger.Debug("OnCancel"))
|
||||
.DoOnSubscribe(() => logger.Debug("OnSubscribe"));
|
||||
|
||||
#else
|
||||
return source;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue