feat(英雄/怪物): 添加受击倒地特效

- 新增 down.prefab 和 down.anim 资源文件
- 在 Hero 和 Monster 的落地逻辑中调用 playEnd("down") 播放特效
- 优化 HeroViewComp 中特效生成逻辑,移除冗余的组件销毁操作
This commit is contained in:
walkpan
2026-03-23 20:23:37 +08:00
parent ef7f76952f
commit 849a8aeaef
7 changed files with 762 additions and 4 deletions

View File

@@ -171,6 +171,7 @@ export class Monster extends ecs.Entity {
.call(() => {
if (!node || !node.isValid) return;
node.setPosition(pos.x, dropToY, 0);
view.playEnd("down");
move.moving = true;
if (collider) {
collider.enabled = true;