From 7f9ec6d10ebb5d741b10e2b4168b11ad0ebb22cd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 11 十一月 2025 17:05:01 +0800
Subject: [PATCH] 125 战斗 飘血 护盾 满怒气 吸血反伤拆分

---
 Main/System/Battle/UIComp/BattleTips.cs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Main/System/Battle/UIComp/BattleTips.cs b/Main/System/Battle/UIComp/BattleTips.cs
index ca50cd7..736d889 100644
--- a/Main/System/Battle/UIComp/BattleTips.cs
+++ b/Main/System/Battle/UIComp/BattleTips.cs
@@ -35,7 +35,7 @@
     #region 绉佹湁瀛楁
     
     // 绉婚櫎 [SerializeField]锛宑ontroller 涓嶅簲璇ヨ搴忓垪鍖�
-    private BattleFloatingUIController controller;
+    public BattleFloatingUIController controller;
     
     #endregion
 
@@ -165,8 +165,6 @@
     /// </summary>
     private void InitController()
     {
-        if (controller != null) return;
-
         if (floatingConfig == null)
         {
             Debug.LogError($"[BattleTips] FloatingConfig 鏈厤缃�! GameObject: {gameObject.name}");
@@ -186,7 +184,7 @@
     /// </summary>
     private void EnsureControllerInitialized()
     {
-        if (controller == null)
+        if (controller == null || !controller.IsValid())
             InitController();
     }
     

--
Gitblit v1.8.0