public override void Notify() { this.pShields = (ShieldGrid)this.pSubject.pObjB; Debug.Assert(this.pShields != null); if (pShields.bMarkForDeath == false) { pShields.bMarkForDeath = true; // Delay RemoveShieldsObserver pObserver = new RemoveShieldsObserver(this, pSpriteBatchMan); DelayedObjectMan.Attach(pObserver); } }
public RemoveShieldsObserver(RemoveShieldsObserver b, SpriteBatchMan pSpriteBatchMan) { Debug.Assert(b != null); this.pShields = b.pShields; this.pSpriteBatchMan = pSpriteBatchMan; }