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,44 +0,0 @@
|
|||
// for uGUI(from 4.6)
|
||||
#if !(UNITY_4_0 || UNITY_4_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_4 || UNITY_4_5)
|
||||
|
||||
using System;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public static partial class UnityGraphicExtensions
|
||||
{
|
||||
public static IObservable<Unit> DirtyLayoutCallbackAsObservable(this Graphic graphic)
|
||||
{
|
||||
return Observable.Create<Unit>(observer =>
|
||||
{
|
||||
UnityAction registerHandler = () => observer.OnNext(Unit.Default);
|
||||
graphic.RegisterDirtyLayoutCallback(registerHandler);
|
||||
return Disposable.Create(() => graphic.UnregisterDirtyLayoutCallback(registerHandler));
|
||||
});
|
||||
}
|
||||
|
||||
public static IObservable<Unit> DirtyMaterialCallbackAsObservable(this Graphic graphic)
|
||||
{
|
||||
return Observable.Create<Unit>(observer =>
|
||||
{
|
||||
UnityAction registerHandler = () => observer.OnNext(Unit.Default);
|
||||
graphic.RegisterDirtyMaterialCallback(registerHandler);
|
||||
return Disposable.Create(() => graphic.UnregisterDirtyMaterialCallback(registerHandler));
|
||||
});
|
||||
}
|
||||
|
||||
public static IObservable<Unit> DirtyVerticesCallbackAsObservable(this Graphic graphic)
|
||||
{
|
||||
return Observable.Create<Unit>(observer =>
|
||||
{
|
||||
UnityAction registerHandler = () => observer.OnNext(Unit.Default);
|
||||
graphic.RegisterDirtyVerticesCallback(registerHandler);
|
||||
return Disposable.Create(() => graphic.UnregisterDirtyVerticesCallback(registerHandler));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue