Exemplo n.º 1
0
 void OnDestroy()
 {
     _gameStartSignal        -= OnStartSignal;
     _gameHighscoreSignal    -= OnHighscoreSignal;
     _gameCreditsSignal      -= OnCreditsSignal;
     _levelStartSignal       -= OnLevelSignal;
     _levelLostSignal        -= OnLevelLostSignal;
     _levelWinSignal         -= OnLevelWinSignal;
     _levelChoseSignal       -= OnLevelChoseSignal;
     _levelNumberStartSignal -= OnLevelSignal;
     _pauseSignal            -= OnPauseSignal;
 }
Exemplo n.º 2
0
 void Awake()
 {
     _gameStartSignal        += OnStartSignal;
     _gameHighscoreSignal    += OnHighscoreSignal;
     _gameCreditsSignal      += OnCreditsSignal;
     _levelStartSignal       += OnLevelSignal;
     _levelLostSignal        += OnLevelLostSignal;
     _levelWinSignal         += OnLevelWinSignal;
     _levelChoseSignal       += OnLevelChoseSignal;
     _levelNumberStartSignal += OnLevelSignal;
     _pauseSignal            += OnPauseSignal;
 }