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