Beispiel #1
0
 private static void ClearCustomComponents()
 {
     Database.Clear();
     FairyGui.Clear();
     // Lua.Clear();
     AppConfig.Clear();
     Camera.Clear();
     Input.Clear();
     Timer.Clear();
     BT.Clear();
     LevelCom.Clear();
     Coroutinue.Clear();
 }
Beispiel #2
0
        private static void InitCustomComponents()
        {
            Database = UnityGameFramework.Runtime.GameEntry.GetComponent <DatabaseComponent>();
            FairyGui = UnityGameFramework.Runtime.GameEntry.GetComponent <FairyGuiComponent>();
            // Lua = UnityGameFramework.Runtime.GameEntry.GetComponent<LuaComponent>();
            AppConfig  = UnityGameFramework.Runtime.GameEntry.GetComponent <AppConfigComponent>();
            Camera     = UnityGameFramework.Runtime.GameEntry.GetComponent <CameraComponent>();
            Input      = UnityGameFramework.Runtime.GameEntry.GetComponent <InputComponent>();
            Timer      = UnityGameFramework.Runtime.GameEntry.GetComponent <TimerComponent>();
            BT         = UnityGameFramework.Runtime.GameEntry.GetComponent <BehaviorTreeComponent>();
            LevelCom   = UnityGameFramework.Runtime.GameEntry.GetComponent <LevelComponent>();
            Coroutinue = UnityGameFramework.Runtime.GameEntry.GetComponent <CoroutinueComponent>();

            Database.Init();
            FairyGui.Init();
            AppConfig.Init();
            Camera.Init();
            Input.Init();
            Timer.Init();
            BT.Init();
            LevelCom.Init();
            Coroutinue.Init();
        }