yyl
2025-08-29 1072db17db1694fb27bf9bfa27a1b91b8867df78
125 【战斗】战斗系统 heroInfoBar 问题修复
1个文件已修改
7 ■■■■■ 已修改文件
Main/System/Battle/BattleObject/BattleObject.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Battle/BattleObject/BattleObject.cs
@@ -52,7 +52,6 @@
    private RectTransform m_heroRectTrans;
    private BattleHeroInfoBar battleHeroInfoBar;
    public RectTransform heroRectTrans
    {
@@ -91,6 +90,7 @@
        renderers = heroGo.GetComponentsInChildren<Renderer>(true);
        Debug.LogError("YYL---1");
        heroInfoBar = heroGo.GetComponentInChildren<BattleHeroInfoBar>(true);
        heroInfoBar.SetBattleObject(this);
    }
@@ -99,7 +99,8 @@
    public virtual void Run()
    {
        motionBase.Run();
        battleHeroInfoBar.Run();
        Debug.LogError("YYL---2");
        heroInfoBar.Run();
    }
    public virtual void Pause()
@@ -134,7 +135,7 @@
        {
            case PlayerDataType.HP:
                long toHp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx);
                battleHeroInfoBar.UpdateHP(teamHero.curHp, toHp, teamHero.maxHp);
                heroInfoBar.UpdateHP(teamHero.curHp, toHp, teamHero.maxHp);
                teamHero.curHp = GeneralDefine.GetFactValue(_refreshInfo.Value, _refreshInfo.ValueEx);
                break;
            case PlayerDataType.MaxHP: