// 移除觀察者 public void Detach(Observer theObserver) { m_Observers.Remove( theObserver ); }
// 加入觀察者 public void Attach(Observer theObserver) { m_Observers.Add( theObserver ); }