From dbb4ea01211573e782666e45eb859c96859b2cd6 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 29 八月 2025 15:59:32 +0800
Subject: [PATCH] 125 【战斗】战斗系统 ui上的一点修正

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

diff --git a/Main/System/Battle/BattleObject/BattleObject.cs b/Main/System/Battle/BattleObject/BattleObject.cs
index eb2ad49..6299053 100644
--- a/Main/System/Battle/BattleObject/BattleObject.cs
+++ b/Main/System/Battle/BattleObject/BattleObject.cs
@@ -90,7 +90,6 @@
 
         renderers = heroGo.GetComponentsInChildren<Renderer>(true);
 
-        Debug.LogError("YYL---1");
         heroInfoBar = heroGo.GetComponentInChildren<BattleHeroInfoBar>(true);
         heroInfoBar.SetBattleObject(this);
     }
@@ -99,7 +98,6 @@
     public virtual void Run()
     {
         motionBase.Run();
-        Debug.LogError("YYL---2");
         heroInfoBar.Run();
     }
 
@@ -142,6 +140,8 @@
                 teamHero.maxHp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx);
                 break;
             case PlayerDataType.XP:
+                long toXp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx);
+                heroInfoBar.UpdateHP(teamHero.rage, toXp, 100);
                 teamHero.rage = (int)GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx);
                 break;
             default:

--
Gitblit v1.8.0