From 2d3a60767d0cd69c8dec97e39937bcd0c667be1c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 12 十一月 2025 18:54:57 +0800
Subject: [PATCH] 125 战斗 血条&护盾1护盾2表现

---
 Main/System/Message/RichText.cs |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Main/System/Message/RichText.cs b/Main/System/Message/RichText.cs
index eb96df1..360a4da 100644
--- a/Main/System/Message/RichText.cs
+++ b/Main/System/Message/RichText.cs
@@ -181,7 +181,7 @@
         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);
@@ -200,7 +200,6 @@
             return;
         }
 #endif 
-        // TODO YYL 閰嶇疆鍔犺浇瀹屾垚涓庡惁鐨勫垽瀹氬彲鑳借繕闇�瑕佽�冮噺
         if (language && !string.IsNullOrEmpty(enableDisplay) && Application.isPlaying/* && ConfigInitiator.done*/)
         {
             text = Language.Get(enableDisplay);
@@ -620,6 +619,7 @@
     #region 鎵ц浜嬩欢
     public void OnPointerClick(PointerEventData eventData)
     {
+        OnClick?.Invoke();
         if (HrefClick)
         {
             Vector2 lp;
@@ -641,7 +641,6 @@
                 }
             }
         }
-        if (OnClick != null) OnClick();
     }
 
     public void OnImgClick()

--
Gitblit v1.8.0