예제 #1
0
        public void UnregisterObserver(uint uiGameEventId, IGameEventObserver Observer)
        {
            IGameEventSubject sub_ = GetSubject(uiGameEventId);

            if (sub_ != null)
            {
                sub_.Detach(Observer);
            }
        }
 public void Attach(IGameEventObserver theObserver)
 {
     m_Observers.Add(theObserver);
 }
 public void Detach(IGameEventObserver theObserver)
 {
     m_Observers.Remove(theObserver);
 }