示例#1
0
文件: Stop.cs 项目: renyh1013/dp2
 public void Unregister(bool bActive = true)
 {
     if (m_manager != null)
     {
         m_manager.Remove(this, false);
         m_manager = null;
     }
 }
示例#2
0
文件: Stop.cs 项目: renyh1013/dp2
        // 注册,和管理对象建立联系
        // parameters:
        //      bActive 是否需要立即激活
        public void Register(StopManager manager,
            bool bActive)
        {
            m_manager = manager;
            manager.Add(this);

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