/// <summary> /// 销毁 /// </summary> public virtual void Destory() { this.m_cStateControl = null; GameObject.DestroyImmediate(this.gameObject); }
public StateControl m_cStateControl; //状态控制类 void Awake() { this.m_cStateControl = new StateControl(this); }