/// <summary> /// 逻辑更新 /// </summary> /// <returns></returns> public bool Update() { if (this.m_cState == null) return false; if (!this.m_cState.Update()) { if (this.m_cState != null) this.m_cState.OnExit(); this.m_cState = null; return false; } return true; }
/// <summary> /// 逻辑更新 /// </summary> /// <returns></returns> public bool Update() { if (this.m_cState == null) { return(false); } if (!this.m_cState.Update()) { if (this.m_cState != null) { this.m_cState.OnExit(); } this.m_cState = null; return(false); } return(true); }
public CmdControl() { this.m_cState = null; this.m_cStateWrap = new CmdStateWrap(); }
private CmdStateWrap m_cStateWrap; //命令状态包 #endregion Fields #region Constructors public CmdControl() { this.m_cState = null; this.m_cStateWrap = new CmdStateWrap(); }