コード例 #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);
 }