Example #1
0
    public void EndRound(bool success)
    {
        spawnSystem.StopSpawning();

        if (success)
        {
            shopCanvas.gameObject.SetActive(true);
            currentState = GameState.UPGRADING;
            currentRound++;
        }
        else
        {
            currentState = GameState.GAMEOVER;
            StartCoroutine(GameOverRoutine());
        }
    }