void OnEnable() { if (!firstRun) { ManagerDoors.SubscribeOnVictory(ChangueOnVictory); ManagerPause.SubscribeOnPauseGame(onPaused); ManagerPause.SubscribeOnResumeGame(onResume); } }
// Use this for initialization void Start() { ChangueBGNormalReset(); firstRun = true; ManagerDoors.SubscribeOnVictory(ChangueOnVictory); ManagerTime.Instance.onTimeGameEnd += (ChangueOnLoose); ManagerPause.SubscribeOnPauseGame(onPaused); ManagerPause.SubscribeOnResumeGame(onResume); }
void OnEnable() { if (isForWin) { ManagerDoors.SubscribeOnVictory(StartAlpha); ManagerDoors.SubscribeOnVictory(Winer); } else { ManagerTime.Instance.onTimeGameEnd += (StartAlpha); ManagerTime.Instance.onTimeGameEnd += (Loser); } }