public void Execute(IGameObject gameObject, IGameObject collidedWith) { EnergyTank energyTank = (EnergyTank)gameObject; foreach (var player in _currentLevel.Players) { var samus = (Samus) player; samus.MaxHealth += 100; } energyTank.Obtain(); //((Samus)collidedWith).MaxHealth += 100; }
public void PickUp() { _tank.Obtain(); }