public override void Notify() { this.pBomb = (Bomb)this.pSubject.pObjA; Debug.Assert(this.pBomb != null); if (pBomb.bMarkForDeath == false) { pBomb.bMarkForDeath = true; BombObserver pObserver = new BombObserver(this); DelayedObjectMan.Attach(pObserver); } }
public BombObserver(BombObserver b) { Debug.Assert(b != null); this.pBomb = b.pBomb; }