Пример #1
0
 public void AddProcedure <T>() where T : BaseProcedure
 {
     if (null != m_IProcedureManager)
     {
         m_IProcedureManager.AddProcedure <T>();
     }
 }
Пример #2
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));
        }