Exemple #1
0
 void OnEnable()
 {
     if (!firstRun)
     {
         ManagerDoors.SubscribeOnVictory(ChangueOnVictory);
         ManagerPause.SubscribeOnPauseGame(onPaused);
         ManagerPause.SubscribeOnResumeGame(onResume);
     }
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        ChangueBGNormalReset();


        firstRun = true;
        ManagerDoors.SubscribeOnVictory(ChangueOnVictory);
        ManagerTime.Instance.onTimeGameEnd += (ChangueOnLoose);

        ManagerPause.SubscribeOnPauseGame(onPaused);
        ManagerPause.SubscribeOnResumeGame(onResume);
    }
Exemple #3
0
 void OnEnable()
 {
     if (isForWin)
     {
         ManagerDoors.SubscribeOnVictory(StartAlpha);
         ManagerDoors.SubscribeOnVictory(Winer);
     }
     else
     {
         ManagerTime.Instance.onTimeGameEnd += (StartAlpha);
         ManagerTime.Instance.onTimeGameEnd += (Loser);
     }
 }