public static void FindKey(UIText l) { string text = l.text; if (l.textKey.IsEmpty() && text.IsNotEmpty()) { string key = Lexicon.FindAltKey(text); if (key.IsNotEmpty()) { l.textKey = key; CompatibilityEditor.SetDirty(l.gameObject); } else { } } }
public static void FindKey(UIText l) { string text = l.text; if (l.textKey.IsEmpty() && !text.IsEmpty()) { string key = Lexicon.FindAltKey(text); if (!key.IsEmpty()) { l.textKey = key; EditorUtil.SetDirty(l.gameObject); } else { } } }