public void AdvanceRound() { if (!gameEnded) { currTeam = (currTeam + 1) % Teams.Count; currTank = Teams.Values[currTeam].Dequeue(); if (currTeam == Teams.IndexOfKey(playerTeamName)) //Set control if team == player team { currTank.SetControllable(true); } //Set the camera to follow the tank currTank.SetEnabled(true); Teams.Values[currTeam].Enqueue(currTank); advancingRound = false; timeRemaining = ROUND_TIME; } }