Пример #1
0
        public void Execute(IGameObject gameObject, IGameObject collidedWith)
        {
            MissilePack missilePack = (MissilePack)gameObject;

            missilePack.Obtain();
            foreach (var player in _currentLevel.Players)
            {
                var samus = (Samus)player;
                samus.HasMissileUpgrade = true;
                samus.RefillMissiles();
            }
            //((Samus)collidedWith).HasMissileUpgrade = true;
            //((Samus)collidedWith).RefillMissiles();
            SoundManager.Instance.PlaySong("rocket_ammo");
        }
Пример #2
0
 public void PickUp()
 {
     _pack.Obtain();
 }