Example #1
0
    void OnEnable()
    {
        GamePlay.instance.StopCoroutine("LoseTime");

        BGMusicController.instance.StopBGMusic();
        GameController.instance.isGamePaused = true;
        EGTween.Pause(GamePlay.instance.gameObject, true);
    }
Example #2
0
 public void TogglePauseGame(bool paused)
 {
     isGamePaused = paused;
     if (GamePlayMode == GameMode.timer)
     {
         if (isGamePaused)
         {
             EGTween.Pause(gameObject);
         }
         else
         {
             EGTween.Resume(gameObject);
         }
     }
 }
Example #3
0
 /// <summary>
 /// Raises the enable event.
 /// </summary>
 void OnEnable()
 {
     BGMusicController.instance.StopBGMusic();
     GameController.instance.isGamePaused = true;
     EGTween.Pause(GamePlay.instance.gameObject, true);
 }