Beispiel #1
0
        public MaterialConfig LoadConfigData()
        {
            Config.JsonReader reader = new Config.JsonReader();

            MaterialConfig config = reader.LoadJsonDataConfig <MaterialConfig>(Config.JsonConfigPath.MaterialConfigJsonPath);

            return(config);
        }
Beispiel #2
0
        public override void InitData()
        {
            var config = ConfigManager.Instance.LoadData <MaterialMetaData>(ConfigPath.TABLE_MATERIAL_METADATA_PATH);

            if (config == null)
            {
                Debug.LogError("MaterialMetaData Read Error");
                return;
            }

            MaterialDic         = config.AllMaterialDic;
            MaterialTypeDic     = config.AllMaterialTypeDic;
            MaterialSubTypeDic  = config.AllMaterialSubTypeDic;
            MaterialSubTypeList = config.AllMaterialSubTypeList;
            MaterialTypeList    = config.AllMaterialTypeList;

            maConfig = new MaterialConfig();
            maConfig.LoadConfigData();
        }