object m_Data; // ユーザーデータ public StateMachine() { m_Timer = TMO.TMO_FEVR; m_TimeOut = TMO.TMO_FEVR; m_TimeOutData = 0; m_OnTimeOut = null; }
protected void SetState(ST state) { m_State = state; m_Timer = TMO.TMO_FEVR; m_TimeOut = TMO.TMO_FEVR; m_TimeOutData = 0; m_OnTimeOut = null; }
protected void SetState(ST state, TMO timeOut, object timeOutData, TTimeOutEvent onTimeOut) { m_State = state; m_Timer = timeOut; m_TimeOut = timeOut; m_TimeOutData = timeOutData; m_OnTimeOut = onTimeOut; }