Example #1
0
 /// <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;
 }
Example #2
0
 /// <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);
 }
Example #3
0
 public CmdControl()
 {
     this.m_cState     = null;
     this.m_cStateWrap = new CmdStateWrap();
 }
Example #4
0
    private CmdStateWrap m_cStateWrap; //命令状态包

    #endregion Fields

    #region Constructors

    public CmdControl()
    {
        this.m_cState = null;
        this.m_cStateWrap = new CmdStateWrap();
    }