| | |
| | | unline = transform.GetComponentInChildren<TextUnline>(); |
| | | if (unline == null) |
| | | { |
| | | GameObject obj = Resources.Load("TextUnline") as GameObject; |
| | | GameObject obj = BuiltInLoader.LoadPrefab("TextUnline"); |
| | | // GameObject obj = UILoader.LoadPrefab("TextUnline") as GameObject; |
| | | obj = Instantiate(obj); |
| | | obj.transform.SetParent(transform); |
| | |
| | | return; |
| | | } |
| | | #endif |
| | | // TODO YYL 配置加载完成与否的判定可能还需要考量 |
| | | if (language && !string.IsNullOrEmpty(enableDisplay) && Application.isPlaying/* && ConfigInitiator.done*/) |
| | | { |
| | | text = Language.Get(enableDisplay); |
| | |
| | | #region 执行事件 |
| | | public void OnPointerClick(PointerEventData eventData) |
| | | { |
| | | OnClick?.Invoke(); |
| | | if (HrefClick) |
| | | { |
| | | Vector2 lp; |
| | |
| | | } |
| | | } |
| | | } |
| | | if (OnClick != null) OnClick(); |
| | | } |
| | | |
| | | public void OnImgClick() |