Beispiel #1
0
 public void Dispose()
 {
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnGameStart);
     _gameEventManager.Unsubscribe(GameEvents.Obstacle.Crossed, OnCrossedObstacle);
     _gameEventManager.Unsubscribe(GameEvents.Powerup.Pickup, OnPowerupPickup);
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Stop, OnLevelStop);
 }
        public void Dispose()
        {
            ResetTimeScaleOverride();

            _gameEventManager.Unsubscribe(GameEvents.Time.OverrideScale, OnTimeScaleOverride);
            _gameEventManager.Unsubscribe(GameEvents.Time.IncrementScale, OnIncrementScale);
            _gameEventManager.Unsubscribe(GameEvents.Time.DecrementScale, OnDecrementScale);

            _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnReset);
            _gameEventManager.Unsubscribe(GameEvents.Gameplay.Reset, OnReset);
        }
Beispiel #3
0
        private void OnWaitComplete(object[] obj)
        {
            _gameEventManager.Unsubscribe(EndEvent, OnWaitComplete);

            Debug.Log($"[{GetType().Name}] {nameof(OnWaitComplete)}");

            _onComplete?.Invoke(this);
            _onComplete = null;
        }
 public void Dispose()
 {
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnGameStart);
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Stop, OnGameStop);
 }
 public void Dispose()
 {
     _gameEventManager.Unsubscribe(GameEvents.StateMachineEvents.Start, OnGameStateStart);
     _gameEventManager.Unsubscribe(GameEvents.StateMachineEvents.End, OnGameStateEnd);
 }
        public override void Dispose()
        {
            _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnGameStart);

            base.Dispose();
        }
 public void Dispose()
 {
     _gameEventManager.Unsubscribe(GameEvents.Application.Share, OnShare);
     _gameEventManager.Unsubscribe(GameEvents.Application.Contact, OnContact);
 }
Beispiel #8
0
 public void Dispose()
 {
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnGameStart);
     _gameEventManager.Unsubscribe(GameEvents.Gameplay.Start, OnGameEnd);
     _gameEventManager.Unsubscribe(GameEvents.Powerup.Pickup, OnPowerupCollected);
 }