public void InitGame() { _turn = 0; Winner = null; OnInitGame?.Invoke(this, EventArgs.Empty); }
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); } }
private void InitGame() { currentLevel++; OnInitGame?.Invoke(currentLevel); playMode = true; }