| | |
| | | { |
| | | if (!buffMgr.isControled[BattleConst.HardControlGroup]) |
| | | { |
| | | battleField.soundManager.PlayEffectSound(teamHero.heroConfig.HitSFX); |
| | | motionBase.PlayAnimation(MotionName.hit, false); |
| | | } |
| | | } |
| | |
| | | public virtual void OnDeath(Action _onDeathAnimationComplete) |
| | | { |
| | | buffMgr.RemoveAllBuff(); |
| | | battleField.soundManager.PlayEffectSound(teamHero.heroConfig.DeathSFX); |
| | | motionBase.PlayDeadAnimation(() => |
| | | { |
| | | teamHero.isDead = true; |
| | |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public bool IsTianziBoss() |
| | | { |
| | | return battleField.MapID == 30020 && battleField.FindBoss() == this; |
| | | } |
| | | } |