private new void Awake() { base.Awake(); if (Application.isPlaying) { if (this.key != string.Empty) { StringKey key = new StringKey(this.key); StringEntry stringEntry = Strings.Get(key); text = stringEntry.String; } text = Localization.Fixup(text); base.isRightToLeftText = Localization.IsRightToLeft; SetTextStyleSetting setTextStyleSetting = base.gameObject.GetComponent <SetTextStyleSetting>(); if ((Object)setTextStyleSetting == (Object)null) { setTextStyleSetting = base.gameObject.AddComponent <SetTextStyleSetting>(); } if (!allowOverride) { setTextStyleSetting.SetStyle(textStyleSetting); } textLinkHandler = GetComponent <TextLinkHandler>(); } }
private void RefreshLinkHandler() { if ((Object)textLinkHandler == (Object)null && allowLinksInternal) { textLinkHandler = GetComponent <TextLinkHandler>(); if ((Object)textLinkHandler == (Object)null) { textLinkHandler = base.gameObject.AddComponent <TextLinkHandler>(); } } else if (!allowLinksInternal && (Object)textLinkHandler != (Object)null) { Object.Destroy(textLinkHandler); textLinkHandler = null; } if ((Object)textLinkHandler != (Object)null) { textLinkHandler.CheckMouseOver(); } }