Beispiel #1
0
        public static void InitConfig()
        {
            Debug.Log("<color=green>Coo.InitConfig</color>");
            PropConfig.Initialize(Coo.configManager.GetCustomConfig <PropConfigLoader>().propConfigs);

            Coo.configManager.GetConfig <int, ConstConfig>();
            Coo.configManager.GetConfig <int, MsgData>();
            Formula.LoadConfig();
            Goo.avatar.LoadConfig();
            War.model.LoadConfig();
            Coo.configManager.GetConfig <int, PlotWarStartConf>();
            Coo.configManager.GetConfig <string, PlotWarHeroConf>();
        }
        void ReadConfig()
        {
            Coo.assetManager  = AssetManager.Instance;
            Coo.configManager = ConfigManager.Instance;
            Coo.assetManager.Init();


            PropConfig.Initialize(Coo.configManager.GetCustomConfig <PropConfigLoader>().propConfigs);
            Coo.configManager.GetConfig <int, ConstConfig>();
            Goo.avatar.LoadConfig();
            War.model.LoadConfig();
            if (Application.isPlaying == false)
            {
                GameObject.DestroyImmediate(GameObject.Find("GameManagers"));
            }
        }