public override void Notify() { if (IsValidCollision() && this.pBrick.isDead == false) { this.pBrick.isDead = true; DelayRemoveManager.Attach(new RemoveBrickObserver(this)); } }
public override void Notify() { if (IsValidCollision() && !this.pBomb.isDead) { pBomb.isDead = true; ExplosionManager.GetBombExplosion(this.pBomb); DelayRemoveManager.Attach(new RemoveBombObserver(this)); } }
public override void Notify() { if (this.IsValidCollision()) { if (this.pAlien.isDead == false) { SoundManager.Play(Sound.Name.AlienExplode); this.pAlien.isDead = true; ExplosionManager.GetAlienExplosion(this.pAlien); DelayRemoveManager.Attach(new RemoveAlienObserver(this)); } } }
public override void Notify() { if (this.IsValidCollision()) { if (this.pMissile.isDead == false) { Player pPlayer = PlayerManager.GetPlayer(); Debug.Assert(pPlayer != null); pPlayer.SetShootingState(PlayerManager.ShootState.MissileReady); this.pMissile.isDead = true; this.pMissile.SetFlyingStatus(false); DelayRemoveManager.Attach(new RemoveMissileObserver(this)); } } }