예제 #1
0
	public void EndRush()
	{
		// disable self and notify listeners
		enabled = false;
		_rushEndCallback();
		_rushEndCallback = delegate() { };
	}
예제 #2
0
	public override void Awake()
	{
		base.Awake();

		// ensure that _rushEndCallback isn't null
		_rushEndCallback = delegate() { };
	}
예제 #3
0
 public void EndRush()
 {
     // disable self and notify listeners
     enabled = false;
     _rushEndCallback();
     _rushEndCallback = delegate() { };
 }
예제 #4
0
    public override void Awake()
    {
        base.Awake();

        // ensure that _rushEndCallback isn't null
        _rushEndCallback = delegate() { };
    }
예제 #5
0
	public void RegisterCallback( RushEndCallback callback )
	{
		_rushEndCallback += callback;
	}
예제 #6
0
 public void RegisterCallback(RushEndCallback callback)
 {
     _rushEndCallback += callback;
 }