コード例 #1
0
        private void ApplyToTypeInfo(Utility.TypeAndAttr info)
        {
            this.currentTypeInfo = info;
            object obj        = null;
            bool   loadResult = ConfigLoader.LoadData(out obj, info.type);

            if (!loadResult)
            {
                obj = System.Activator.CreateInstance(info.type);
            }
            ApplyCurrentValue(obj);
        }
コード例 #2
0
        private static void UpdateInfo(Utility.TypeAndAttr typeAndAttr)
        {
            object obj = null;

            ConfigLoader.LoadData(out obj, typeAndAttr.type);
            if (obj == null)
            {
                obj = System.Activator.CreateInstance(typeAndAttr.type);
            }

            IConfigUpdateOnBuild config = obj as IConfigUpdateOnBuild;

            config.OnPreprocessBuild();
            Utility.SaveDataToStreamingAssets(config);
        }