public static UILocalize SetLocalization(this Text text, string key, string keyUnit, StringType type, params object[] args) { UILocalize uiLocalize = text.GetComponent <UILocalize>(); if (uiLocalize == null) { uiLocalize = text.gameObject.AddComponent <UILocalize>(); } uiLocalize.Set(key, keyUnit, type, args); return(uiLocalize); }