Example #1
0
    public void SwitchTeam()
    {
        ui.UpdateUI(currentTeam);

        if (currentTeam == teamBlue)
        {
            currentTeam = teamRed;
        }
        else
        {
            currentTeam = teamBlue;
        }

        spotlight.ChangeTeamLight(currentTeam);
        ui.ChangeEdgeColor(currentTeam);
        ui.SwitchTeamFlags(currentTeam);
        ChangeRoundType();

        Debug.Log("TEAM " + currentTeam.color + "'s TURN");
    }