| | |
| | | unline = transform.GetComponentInChildren<TextUnline>(); |
| | | if (unline == null) |
| | | { |
| | | GameObject obj = Resources.Load("UIComp/TextUnline") as GameObject; |
| | | GameObject obj = BuiltInLoader.LoadPrefab("TextUnline"); |
| | | // GameObject obj = UILoader.LoadPrefab("TextUnline") as GameObject; |
| | | obj = Instantiate(obj); |
| | | obj.transform.SetParent(transform); |
| | |
| | | #region 执行事件 |
| | | public void OnPointerClick(PointerEventData eventData) |
| | | { |
| | | OnClick?.Invoke(); |
| | | if (HrefClick) |
| | | { |
| | | Vector2 lp; |
| | |
| | | } |
| | | } |
| | | } |
| | | if (OnClick != null) OnClick(); |
| | | } |
| | | |
| | | public void OnImgClick() |