Ejemplo n.º 1
0
        public void ChangeActivePlayer()
        {
            if (_extraTurns.Count > 0)
            {
                var nextActive = _extraTurns.PopLast();
                var opponent   = GetOpponent(nextActive);

                nextActive.IsActive = true;
                opponent.IsActive   = false;

                return;
            }

            Player1.IsActive = !Player1.IsActive;
            Player2.IsActive = !Player2.IsActive;
        }