From bc1cb6da854cb2e9144f10ed55330a537ecdca16 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 04 三月 2026 14:35:57 +0800
Subject: [PATCH] 466 h5版本 资源规则修改 打包修改(未完成 勿拉取)
---
Main/System/Battle/BattleObject/HeroBattleObject.cs | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Main/System/Battle/BattleObject/HeroBattleObject.cs b/Main/System/Battle/BattleObject/HeroBattleObject.cs
index 8b6f0ad..7db9465 100644
--- a/Main/System/Battle/BattleObject/HeroBattleObject.cs
+++ b/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();
--
Gitblit v1.8.0