void IIniting.OnInit() { config.Init(config.GameValusConfigs); CreatEnemies(); SetupTowers(); SetParameters(); restartButton.onClick.AddListener(() => RestartGame()); Bootstrap.ChangeGameState(EGamestate.Game); }
void IUpdating.OnUpdate() { Debug.Log($"Game state update. Frame {Time.frameCount}"); if (Input.GetKeyDown(KeyCode.Space)) { Bootstrap.ChangeGameState(EGamestate.Loading); } }
void IIniting.OnInit() { Debug.Log($"<color=yellow>Loading state inited. Frame {Time.frameCount}</color>"); Bootstrap.ChangeGameState(EGamestate.Game); }