mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Localization本地化
Localization本地化
This commit is contained in:
@@ -15,7 +15,11 @@ namespace TEngine
|
||||
protected override void Start()
|
||||
{
|
||||
base.Start();
|
||||
if (string.IsNullOrEmpty(this.text))
|
||||
if (Key > 0 && string.IsNullOrEmpty(this.text))
|
||||
{
|
||||
text = SetText(Key);
|
||||
}
|
||||
else if (!string.IsNullOrEmpty(this.text))
|
||||
{
|
||||
Key = LocalizeMgr.Instance.GetLocalId(this.text);
|
||||
if (Key <= 0)
|
||||
|
Reference in New Issue
Block a user