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

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

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