public void Action(Player player)
 {
     _game.VisualObjects.Remove(player);
     _game.PlayerLives--;
     if (_game.PlayerLives <= 0)
         _game.End();
     else
         _game.RePositionPlayer();
 }
예제 #2
0
        private void CreatePlayer()
        {
            if (_currentPlayer != null)
                _visualObjects.Remove(_currentPlayer);

            _currentPlayer = _context.Resolve<Human>();
            _visualObjects.Add(_currentPlayer);
        }