Exemplo n.º 1
0
 public void Unregister(bool bActive = true)
 {
     if (m_manager != null)
     {
         m_manager.Remove(this, false);
         m_manager = null;
     }
 }
Exemplo n.º 2
0
        // 注册,和管理对象建立联系
        // parameters:
        //      bActive 是否需要立即激活
        public void Register(StopManager manager,
            bool bActive)
        {
            m_manager = manager;
            manager.Add(this);

            if (bActive == true)
                manager.Active(this);
        }