Пример #1
0
        public override void Notify()
        {
            this.pUFO = (UFO)this.pSubject.pObjB;
            Debug.Assert(this.pUFO != null);

            if (pUFO.bMarkForDeath == false)
            {
                pUFO.bMarkForDeath = true;
                //   Delay
                RemoveUFOObserver2 pObserver = new RemoveUFOObserver2(this);
                DelayedObjectMan.Attach(pObserver);
            }
        }
Пример #2
0
 public RemoveUFOObserver2(RemoveUFOObserver2 u)
 {
     Debug.Assert(u != null);
     this.pUFO = u.pUFO;
 }