public void EndRush() { // disable self and notify listeners enabled = false; _rushEndCallback(); _rushEndCallback = delegate() { }; }
public override void Awake() { base.Awake(); // ensure that _rushEndCallback isn't null _rushEndCallback = delegate() { }; }
public void RegisterCallback( RushEndCallback callback ) { _rushEndCallback += callback; }
public void RegisterCallback(RushEndCallback callback) { _rushEndCallback += callback; }