Example #1
0
    void SetUpCups(int config, int team)
    {
        Cup.RemoveTeamCups(team);

        bool flip = ((config & 1) == 0);

        for (int pos = 1; pos <= NUM_CUP_POS; pos++)
        {
            if ((config & (1 << pos)) != 0)
            {
                AddCup(pos, flip, team);
            }
        }
    }