public void Action(Player player) { _game.VisualObjects.Remove(player); _game.PlayerLives--; if (_game.PlayerLives <= 0) _game.End(); else _game.RePositionPlayer(); }
private void CreatePlayer() { if (_currentPlayer != null) _visualObjects.Remove(_currentPlayer); _currentPlayer = _context.Resolve<Human>(); _visualObjects.Add(_currentPlayer); }