예제 #1
0
파일: Config.cs 프로젝트: playunits/yak
        private void Load()
        {
            var result = JSONWriter.Read <Config>(GlobalConfig.ConfigFile);

            if (!result.success)
            {
                return;
            }

            foreach (PropertyInfo info in result.element.GetType().GetProperties())
            {
                info.SetValue(this, info.GetValue(result.element));
            }
        }