Пример #1
0
        public void Add(int money, int oil, TeamName teamName)
        {
            switch (teamName)
            {
            case TeamName.Team1:
                MoneyTeam1.Add(money);
                OilTeam1.Add(oil);
                break;

            case TeamName.Team2:
                MoneyTeam2.Add(money);
                OilTeam2.Add(oil);
                break;
            }
        }