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