This commit is contained in:
2025-06-26 10:55:14 +08:00
parent 5883801f6e
commit 82ee5f55a3
2 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -26,8 +26,7 @@ namespace Deconstruction.UI.TmpText
[LabelText("点击超链接时回调")]
#endif
[SerializeField]
private UnityEvent<string> _onClickLink;
public Action<string> onClickLink;
public UnityEvent<string> onClickLink;
private void Awake()
{
@@ -54,7 +53,6 @@ namespace Deconstruction.UI.TmpText
try
{
onClickLink?.Invoke(linkID);
_onClickLink.Invoke(linkID);
manager.OnAnyLinkClick(linkID);
}
catch (Exception e)