Example #1
0
        public void Execute(IGameObject gameObject, IGameObject collidedWith)
        {
            EnergyRefill energyRefill = (EnergyRefill)gameObject;

            energyRefill.Obtain();
            Samus samus = (Samus)collidedWith;

            samus.RefillEnergy();
        }
Example #2
0
 public void PickUp()
 {
     _refill.Obtain();
 }