public void StartGame() { Instance = this; Game = GameModeBase.CreateGameMode(Mode); Game.Init(); StartCoroutine(Game.GameLoop()); }
void Awake() { Instance = this; Game = GameModeBase.CreateGameMode(GameMode); OnInit(); InitGame(); }
private void OnConfigLoaded() { Debug.Log("config loaded"); Game = (NormalMode)GameModeBase.CreateGameMode("Normal"); Game.Init(); Game.StartGame(); Destroy(gameObject); }