Пример #1
0
 void Start()
 {
     ManagerPause.SubscribeOnPauseGame(OnPauseGame);
     ManagerPause.SubscribeOnResumeGame(OnResumeGame);
     ManagerStop.SubscribeOnStopGame(OnStopGame);
     firstRun = false;
 }
Пример #2
0
 void OnEnable()
 {
     if (!firstRun)
     {
         ManagerPause.SubscribeOnPauseGame(OnPauseGame);
         ManagerPause.SubscribeOnResumeGame(OnResumeGame);
         ManagerStop.SubscribeOnStopGame(OnStopGame);
     }
 }
Пример #3
0
 public override void DoBeforeEntering()
 {
     ManagerPause.SubscribeOnPauseGame(OnPauseGame);
     ManagerPause.SubscribeOnResumeGame(OnResumeGame);
     ManagerStop.SubscribeOnStopGame(OnStopGame);
 }