| | |
| | | using Spine.Unity; |
| | | using UnityEngine.UI; |
| | | using System.Linq; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | public class HeroBattleObject : BattleObject |
| | | { |
| | |
| | | { |
| | | 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); |
| | | } |
| | | } |
| | |
| | | motionBase.ShowIllusionShadow(false); |
| | | }; |
| | | |
| | | battleField.soundManager.PlayEffectSound(BattleConst.DodgeSoundID); |
| | | battleField.soundManager.PlayEffectSound(BattleConst.DodgeSoundID).Forget(); |
| | | |
| | | battleField.battleTweenMgr.OnPlayTween(tween); |
| | | } |
| | |
| | | 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(); |