void OnDisable() { if (isForWin) { ManagerDoors.UnSubscribeOnVictory(StartAlpha); ManagerDoors.UnSubscribeOnVictory(Winer); } else { if (ManagerTime.Instance != null) { ManagerTime.Instance.onTimeGameEnd -= (StartAlpha); ManagerTime.Instance.onTimeGameEnd -= (Loser); } } }
void OnDisable() { ManagerDoors.UnSubscribeOnVictory(ChangueOnVictory); ManagerPause.UnSubscribeOnPauseGame(onPaused); ManagerPause.UnSubscribeOnResumeGame(onResume); }