public void Execute(IGameObject gameObject, IGameObject collidedWith) { EnergyRefill energyRefill = (EnergyRefill)gameObject; energyRefill.Obtain(); Samus samus = (Samus)collidedWith; samus.RefillEnergy(); }
public void PickUp() { _refill.Obtain(); }