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"); }
public void PickUp() { _pack.Obtain(); }