修改
This commit is contained in:
parent
dddb4ebf32
commit
a2f231014b
@ -6,6 +6,7 @@ namespace UnityEngine.UI
|
|||||||
public class UXTextMeshPro : TextMeshProUGUI
|
public class UXTextMeshPro : TextMeshProUGUI
|
||||||
{
|
{
|
||||||
[SerializeField] private string m_localizationID = "";
|
[SerializeField] private string m_localizationID = "";
|
||||||
|
|
||||||
protected override void Start()
|
protected override void Start()
|
||||||
{
|
{
|
||||||
base.Start();
|
base.Start();
|
||||||
@ -15,7 +16,7 @@ namespace UnityEngine.UI
|
|||||||
|
|
||||||
protected void ChangeLanguage()
|
protected void ChangeLanguage()
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(m_localizationID) && !"None".Equals(m_localizationID))
|
if (!string.IsNullOrEmpty(m_localizationID) && !"None".Equals(m_localizationID) && GameApp.Localization != null)
|
||||||
{
|
{
|
||||||
text = GameApp.Localization?.GetString(m_localizationID);
|
text = GameApp.Localization?.GetString(m_localizationID);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user