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