feat(英雄技能): 添加技能前摇与后摇动画支持
- 在 SCastSystem 中调用 playReady 播放技能前摇动画 - 在 HeroAtkSystem 中调用 playEnd 播放技能后摇动画 - 将 playSkillEffect 重构为 playSkillAnm 以播放角色攻击动画 - 修复 HeroViewComp 中 playReady 方法名拼写错误
This commit is contained in:
@@ -70,7 +70,10 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
|
||||
const s_uuid = castPlan.skillId;
|
||||
const config = SkillSet[s_uuid];
|
||||
if (!config) return;
|
||||
heroView.playSkillEffect(s_uuid);
|
||||
//播放前摇技能动画
|
||||
heroView.playReady(config.readyAnm);
|
||||
//播放角色攻击动画
|
||||
heroView.playSkillAnm(config.act);
|
||||
const isMainSkill = s_uuid === heroAttrs.skill_id;
|
||||
|
||||
// 优先使用技能配置的前摇时间,否则使用全局默认值
|
||||
|
||||
Reference in New Issue
Block a user