private void Awake() { //Get the instance of the GlobalGameMananger. instance = GlobalGameManager.Instance; //Get the teamID for each player. for (int i = 0; i < m_Players.Length; i++) { m_Players[i] = instance.GetPlayerTeamID(i, MinigameMode.MODE_2V2); if (m_Players[i] == 0) { m_TeamOne.Add(i); } else { m_TeamTwo.Add(i); } } //Set lists for team winning. m_TeamOneWon.Add(m_Players[0]); m_TeamOneWon.Add(m_Players[1]); m_TeamOneWon.Add(m_Players[2]); m_TeamOneWon.Add(m_Players[3]); m_TeamTwoWon = SetWinningTeam(m_TeamOneWon); }