yyl
2026-03-04 bc1cb6da854cb2e9144f10ed55330a537ecdca16
Main/System/Battle/BattleObject/HeroBattleObject.cs
@@ -8,6 +8,7 @@
using Spine.Unity;
using UnityEngine.UI;
using System.Linq;
using Cysharp.Threading.Tasks;
public class HeroBattleObject : BattleObject
{
@@ -392,7 +393,7 @@
            {
                if (!buffMgr.isControled[BattleConst.HardControlGroup])
                {
                    battleField.soundManager.PlayEffectSound(teamHero.heroConfig.HitSFX, false);
                    battleField.soundManager.PlayEffectSound(teamHero.heroConfig.HitSFX, false).Forget();
                    motionBase.PlayAnimation(MotionName.hit, false);
                }
            }
@@ -444,7 +445,7 @@
            motionBase.ShowIllusionShadow(false);
        };
        battleField.soundManager.PlayEffectSound(BattleConst.DodgeSoundID);
        battleField.soundManager.PlayEffectSound(BattleConst.DodgeSoundID).Forget();
        battleField.battleTweenMgr.OnPlayTween(tween);
    }
@@ -468,7 +469,7 @@
    public override void OnDeath(Action _onDeathAnimationComplete, bool withoutAnime = false)
    {
        buffMgr.RemoveAllBuff();
        battleField.soundManager.PlayEffectSound(teamHero.heroConfig.DeathSFX, false);
        battleField.soundManager.PlayEffectSound(teamHero.heroConfig.DeathSFX, false).Forget();
        if (withoutAnime)
        {
            SetDeath();