private void Awake() { all.Add(this); if (stringId > 0) { currnetText = LocalizationService.Get(stringId); } }
public void SetFormatedText(params object[] args) { localargs = args; if (stringId > 0) { currnetText = LocalizationService.Get(stringId); } DisplayText(); CheckSize(); }
public static void SetStringId(LocalText local, int stringId) { local.stringId = stringId; if (local.stringId > 0) { local.currnetText = LocalizationService.Get(stringId); } local.DisplayText(); local.CheckSize(); }
private void OnLanguageChanged() { if (stringId == 0) { return; } if (localargs == null) { currnetText = LocalizationService.Get(stringId); DisplayText(); CheckSize(); } else { SetFormatedText(localargs); } }
public Popup_Confirm Setup(int stringId, bool displayOkButton, bool displayCancelButton, System.Action <bool> callback) { return(Setup(LocalizationService.Get(stringId), displayOkButton, displayCancelButton, callback)); }
public Popup_Confirm SetText(int stringId, params object[] args) { return(SetText(LocalizationService.Get(stringId), args)); }