/// <summary> /// 是否存在流程。 /// </summary> /// <typeparam name="T">要检查的流程类型。</typeparam> /// <returns>是否存在流程。</returns> public bool HasProcedure <T>() where T : ProcedureBase { if (m_ProcedureFSM == null) { throw new Exception("You must initialize procedure first."); } return(m_ProcedureFSM.HasState <T>()); }