コード例 #1
0
    private void ReloadLevel()
    {
        if (_roundCounter <= _roundsAmount)
        {
            DisableLevel();

            // Reset players
            ResetActivePlayers();

            // HIDE GAME OVER UI
            _roundOver.DisableRoundOver();

            PreRoundStart();
        }
        else
        {
            // HIDE GAME OVER UI
            _roundOver.DisableRoundOver();
            _endGameUI.ShowEndGameLeaderboard();

            Invoke("ResetGame", 10f);
        }
    }