diff --git a/Runtime/Deconstruction.dll b/Runtime/Deconstruction.dll index 5e1a676..e40db4b 100644 Binary files a/Runtime/Deconstruction.dll and b/Runtime/Deconstruction.dll differ diff --git a/Runtime/UI/TmpText.meta b/Runtime/UI/TmpText.meta index e3c9bfd..6ec62ab 100644 --- a/Runtime/UI/TmpText.meta +++ b/Runtime/UI/TmpText.meta @@ -1,9 +1,5 @@ fileFormatVersion: 2 -<<<<<<<< HEAD:Release/Samples~/ConfigUIElement.meta -guid: 7758a0679c9038144a4b0d007d44618f -======== guid: 85f1b523843f5884bb9f6b47500bccd0 ->>>>>>>> gitea-Srouce/master:Release/Runtime/UI/TmpText.meta folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Runtime/UI/TmpText/TMPHyperlinkManager.cs b/Runtime/UI/TmpText/TMPHyperlinkManager.cs index f86d35a..2bde5a7 100644 --- a/Runtime/UI/TmpText/TMPHyperlinkManager.cs +++ b/Runtime/UI/TmpText/TMPHyperlinkManager.cs @@ -30,7 +30,7 @@ namespace Deconstruction.UI.TmpText [LabelText("点击超链接时回调")] #endif [SerializeField] - public UnityEvent onClickLink; + public UnityEvent onClickLink = new UnityEvent(); /// @@ -46,7 +46,7 @@ namespace Deconstruction.UI.TmpText protected void Awake() { if (canvas == null) - transform.GetParents().Startup(transform).GetComponent(out canvas); + canvas = transform.GetParents().Startup(transform).GetComponent(); if (canvas == null) { Debug.LogError("TMP文本对象必须在Canvas下才能使用超链接功能"); @@ -160,7 +160,7 @@ namespace Deconstruction.UI.TmpText internal void OnAnyLinkClick(string linkID) { onClickLink?.Invoke(linkID); - Debug.Log($"click link{linkID}"); + // Debug.Log($"click link{linkID}"); // 这里不需要处理报错,应当由发送消息的成员处理 } diff --git a/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs b/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs index 6329790..cce147b 100644 --- a/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs +++ b/Runtime/UI/TmpText/TMPHyperlinkReceiver.cs @@ -26,7 +26,7 @@ namespace Deconstruction.UI.TmpText [LabelText("点击超链接时回调")] #endif [SerializeField] - public UnityEvent onClickLink; + public UnityEvent onClickLink = new UnityEvent(); private void Awake() { diff --git a/Runtime/XericLibrary.dll b/Runtime/XericLibrary.dll index fd1add8..366df86 100644 Binary files a/Runtime/XericLibrary.dll and b/Runtime/XericLibrary.dll differ