Esempio n. 1
0
 public void Pause()
 {
     SpawnerEvent.Trigger(SpawnerState.Pasue);
     _player._isControllable = false;
     _isPlayable             = false;
     Debug.Log("게임 멈춤");
 }
Esempio n. 2
0
        /// 하드 코딩함 리팩토링 요구됨
        private IEnumerator ReadyAndStartRoutine()
        {
            Pause();
            BgmManager.Instance.Play(_stage1Openingbgm);
            _readyText.SetActive(true);
            yield return(new WaitForSecondsRealtime(3.0f));

            _startText.SetActive(true);
            yield return(new WaitForSecondsRealtime(3.0f));

            _readyText.SetActive(false);
            _startText.SetActive(false);
            Play();
            BgmManager.Instance.Play(_stage1Mainbgm, true);
            yield return(new WaitForSecondsRealtime(0.33f));

            SpawnerEvent.Trigger(SpawnerState.Play);
        }