From 3bc28c54e82721b7858eaa3507f0f65a4041736d Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 08 八月 2025 18:51:39 +0800
Subject: [PATCH] 125 【战斗】战斗系统 协议更新 配置更新

---
 Main/System/Battle/BattleEffectMgr.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Main/System/Battle/BattleEffectMgr.cs b/Main/System/Battle/BattleEffectMgr.cs
index 8d507cc..c4607d7 100644
--- a/Main/System/Battle/BattleEffectMgr.cs
+++ b/Main/System/Battle/BattleEffectMgr.cs
@@ -99,4 +99,20 @@
         }
         effectDict.Clear();
     }
+
+    public void Release()
+    {
+        foreach (var effect in effectDict)
+        {
+            foreach (var effectPlayer in effect.Value)
+            {
+                if (effectPlayer != null)
+                {
+                    GameObject.DestroyImmediate(effectPlayer.gameObject);
+                }
+            }
+        }
+
+        effectDict.Clear();
+    }
 }
\ No newline at end of file

--
Gitblit v1.8.0