Example #1
0
        /// <summary>
        /// 绑定实体到状态机
        /// </summary>
        /// <returns></returns>
        public bool BindEntity(IFSMEntity fsmEntity)
        {
            if (fsmEntity == null)
            {
                return(false);
            }
            m_BindEntity = fsmEntity;
            bool bRet = true;

            bRet = m_Reflector.Init(m_BindEntity.GetType());
            return(bRet);
        }
Example #2
0
 /// <summary>
 /// 同实体解绑
 /// </summary>
 /// <returns></returns>
 public bool UnBind()
 {
     m_BindEntity = null;
     m_Reflector.Clear();
     return(true);
 }