feat(英雄技能): 添加技能前摇与后摇动画支持
- 在 SCastSystem 中调用 playReady 播放技能前摇动画 - 在 HeroAtkSystem 中调用 playEnd 播放技能后摇动画 - 将 playSkillEffect 重构为 playSkillAnm 以播放角色攻击动画 - 修复 HeroViewComp 中 playReady 方法名拼写错误
This commit is contained in:
@@ -158,7 +158,10 @@ export class HeroAtkSystem extends ecs.ComblockSystem implements ecs.ISystemUpd
|
||||
|
||||
|
||||
// ✅ 触发视图层表现(伤害数字、受击动画、后退)
|
||||
if (targetView) targetView.do_atked(damage, isCrit, damageEvent.s_uuid, isBack);
|
||||
if (targetView) {
|
||||
targetView.do_atked(damage, isCrit, damageEvent.s_uuid, isBack);
|
||||
targetView.playEnd(skillConf.endAnm);
|
||||
}
|
||||
|
||||
|
||||
// 检查死亡
|
||||
|
||||
Reference in New Issue
Block a user