| | |
| | | |
| | | public static string Get(string _id) |
| | | { |
| | | // TODO YYL |
| | | return string.Empty; |
| | | // var languageInfo = LanguageConfig.Get(_id); |
| | | // if (languageInfo == null) |
| | | // { |
| | | // #if UNITY_EDITOR |
| | | // if (_id.StartsWith(NewBieGuideScriptableObject.GuidesPrefixNewBie) || |
| | | // _id.StartsWith(NewBieGuideScriptableObject.GuidesPrefixFun)) |
| | | // return string.Empty; |
| | | // Debug.LogFormat("缺少语言表配置,id: {0}", _id); |
| | | // #endif |
| | | // return string.Empty; |
| | | // } |
| | | // return string.Empty; |
| | | var languageInfo = LanguageConfig.Get(_id); |
| | | if (languageInfo == null) |
| | | { |
| | | #if UNITY_EDITOR |
| | | // TODO YYL |
| | | // if (_id.StartsWith(NewBieGuideScriptableObject.GuidesPrefixNewBie) || |
| | | // _id.StartsWith(NewBieGuideScriptableObject.GuidesPrefixFun)) |
| | | // return string.Empty; |
| | | // Debug.LogFormat("缺少语言表配置,id: {0}", _id); |
| | | #endif |
| | | return string.Empty; |
| | | } |
| | | |
| | | // if (string.IsNullOrEmpty(languageInfo.content)) |
| | | // { |
| | | // Debug.LogFormat("语言内容为空,id: {0}", _id); |
| | | // } |
| | | if (string.IsNullOrEmpty(languageInfo.content)) |
| | | { |
| | | Debug.LogFormat("语言内容为空,id: {0}", _id); |
| | | } |
| | | |
| | | // return languageInfo.content; |
| | | return languageInfo.content; |
| | | } |
| | | |
| | | public static string Get(string _id, params object[] _objects) |
| | |
| | | public static string GetFromLocal(int _id) |
| | | { |
| | | return string.Empty; |
| | | // TODO YYL |
| | | // var languageInfo = PriorLanguageConfig.Get(_id); |
| | | // if (languageInfo == null) |
| | | // { |
| | | // Debug.LogFormat("缺少语言表配置,id: {0}", _id); |
| | | // return string.Empty; |
| | | // } |
| | | var languageInfo = PriorLanguageConfig.Get(_id); |
| | | if (languageInfo == null) |
| | | { |
| | | Debug.LogFormat("缺少语言表配置,id: {0}", _id); |
| | | return string.Empty; |
| | | } |
| | | |
| | | // if (string.IsNullOrEmpty(languageInfo.Content)) |
| | | // { |
| | | // Debug.LogFormat("语言内容为空,id: {0}", _id); |
| | | // } |
| | | if (string.IsNullOrEmpty(languageInfo.Content)) |
| | | { |
| | | Debug.LogFormat("语言内容为空,id: {0}", _id); |
| | | } |
| | | |
| | | // return languageInfo.Content; |
| | | return languageInfo.Content; |
| | | } |
| | | |
| | | public static string GetFromLocal(int _id, params object[] _objects) |