Example #1
0
 void IIniting.OnInit()
 {
     config.Init(config.GameValusConfigs);
     CreatEnemies();
     SetupTowers();
     SetParameters();
     restartButton.onClick.AddListener(() => RestartGame());
     Bootstrap.ChangeGameState(EGamestate.Game);
 }
Example #2
0
    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);
    }