コード例 #1
0
        public bool GetFirstPlayer()
        {
            int speedSumTeam1 = 0;

            Team1.ForEach(x => speedSumTeam1 += x.Powerstats.Speed + speedSumTeam1);
            int speedSumTeam2 = 0;

            Team1.ForEach(x => speedSumTeam2 += x.Powerstats.Speed + speedSumTeam2);

            if (speedSumTeam1 < speedSumTeam2)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }