private void SetDefaultFont() { Font defaultFont = LocalizationManager.GetTranslation <Font>("default_ugui"); if (defaultFont != null) { _textUgui.font = defaultFont; } }
private void SetText() { string translation = LocalizationManager.GetTranslation <string>(Term); if (!String.IsNullOrEmpty(translation)) { if (!LocalizationManager.IsCurrentLanguageRTL()) { _textUgui.text = translation; } else { _textUgui.text = LocalizationManager.Reverse(translation); } } }
protected override void Localize() { _image.sprite = LocalizationManager.GetTranslation <Sprite>(Term); }
private void LocalizeFont() { _textUgui.font = LocalizationManager.GetTranslation <Font>(_font); }