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,23 +0,0 @@
|
|||
#if !(UNITY_IPHONE || UNITY_ANDROID || UNITY_METRO)
|
||||
|
||||
using UnityEngine;
|
||||
using UniRx.Triggers; // for enable gameObject.EventAsObservbale()
|
||||
|
||||
namespace UniRx.Examples
|
||||
{
|
||||
public class Sample03_GameObjectAsObservable : MonoBehaviour
|
||||
{
|
||||
void Start()
|
||||
{
|
||||
// All events can subscribe by ***AsObservable if enables UniRx.Triggers
|
||||
this.OnMouseDownAsObservable()
|
||||
.SelectMany(_ => this.gameObject.UpdateAsObservable())
|
||||
.TakeUntil(this.gameObject.OnMouseUpAsObservable())
|
||||
.Select(_ => Input.mousePosition)
|
||||
.RepeatUntilDestroy(this)
|
||||
.Subscribe(x => Debug.Log(x), ()=> Debug.Log("!!!" + "complete"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue