From 21488796efae93ab7f074d7ad9bfc9d15d82a182 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 29 八月 2025 15:21:49 +0800
Subject: [PATCH] 125 【战斗】战斗系统

---
 Main/System/Battle/BattleManager.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index f466f64..45f1010 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -10,7 +10,6 @@
     //  鍚屾椂鍙兘鏈変竴鍦烘垬鏂楀湪杩涜 guid, battlefield
     protected Dictionary<string, BattleField> battleFields = new Dictionary<string, BattleField>();
 
-    protected LogicUpdate logicUpdate = new LogicUpdate();
 
     public Action<string, BattleField> onBattleFieldCreate;
 
@@ -19,14 +18,15 @@
     public override void Init()
     {
         base.Init();
-        logicUpdate.Start(Run);
+
+        LogicEngine.Instance.OnUpdate += Run;
         DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent += OnPlayerLoginOk;
     }
 
     public override void Release()
     {
         base.Release();
-        logicUpdate.Destroy();
+        LogicEngine.Instance.OnUpdate -= Run;
         DTC0403_tagPlayerLoginLoadOK.playerLoginOkEvent -= OnPlayerLoginOk;
     }
 

--
Gitblit v1.8.0