예제 #1
0
        public void InitGame()
        {
            _turn  = 0;
            Winner = null;

            OnInitGame?.Invoke(this, EventArgs.Empty);
        }
예제 #2
0
 IEnumerator InitGame()
 {
     Debug.Log("GameController: InitGame");
     _state = GameState.GameInit;
     if (OnInitGame != null)
     {
         OnInitGame.Invoke();
     }
     else
     {
         _state = GameState.GameInitComplete;
     }
     while (_state != GameState.GameInitComplete)
     {
         yield return(null);
     }
 }
예제 #3
0
 private void InitGame()
 {
     currentLevel++;
     OnInitGame?.Invoke(currentLevel);
     playMode = true;
 }