using System; using Model; using UnityEngine; namespace Hotfix { public static class ConfigHelper { public static string GetText(string key) { try { string configStr = ((GameObject) Resources.Load("Config")).Get(key).text; return configStr; } catch (Exception e) { throw new Exception($"load config file fail, key: {key}", e); } } } }