예제 #1
0
        protected override void Awake()
        {
            base.Awake();

            m_IProcedureManager = GameBox.App.Driver.GetModule <IProcedureManager>();
            if (null == m_IProcedureManager)
            {
                throw new GameBoxFrameworkException("IProcedureManager是无效的.");
            }

            for (int i = 0; i < m_AvailableProcedureTypeNames.Length; i++)
            {
                m_IProcedureManager.AddProcedure(Type.GetType(m_AvailableProcedureTypeNames[i]));
            }

            m_IProcedureManager.BootProcedure = m_IProcedureManager.GetProcedure(Type.GetType(m_BootProcedureTypeName));
        }
예제 #2
0
 /// <summary>
 /// 获取流程。
 /// </summary>
 /// <returns>要获取的流程。</returns>
 /// <typeparam name="T">流程类型。</typeparam>
 public ProcedureBase GetProcedure <T>() where T : ProcedureBase
 {
     return(m_ProcedureManager.GetProcedure <T>());
 }
예제 #3
0
 /// <summary>
 /// 获取流程。
 /// </summary>
 /// <returns>要获取的流程。</returns>
 /// <typeparam name="T">流程类型。</typeparam>
 public T GetProcedure <T>() where T : ProcedureBase
 {
     return((T)m_ProcedureManager.GetProcedure <T>());
 }