Пример #1
0
        /// <summary>
        /// 销毁
        /// </summary>
        public virtual void Destory()
        {
            this.m_cStateControl = null;

            GameObject.DestroyImmediate(this.gameObject);
        }
Пример #2
0
        public StateControl m_cStateControl;         //状态控制类

        void Awake()
        {
            this.m_cStateControl = new StateControl(this);
        }