Esempio n. 1
0
        public void Execute(IGameObject gameObject, IGameObject collidedWith)
        {
            EnergyRefill energyRefill = (EnergyRefill)gameObject;

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

            samus.RefillEnergy();
        }
Esempio n. 2
0
 public void PickUp()
 {
     _refill.Obtain();
 }