feat(skill): 新增死亡动画及预制体资源

添加 dead.prefab 预制体及其关联的 dead.anim 动画文件,用于角色死亡时的技能表现。
This commit is contained in:
panw
2026-02-05 16:16:05 +08:00
parent 1ad7b70c45
commit b85b9d8655
10 changed files with 15684 additions and 3755 deletions

View File

@@ -317,7 +317,12 @@ export class HeroViewComp extends CCComp {
var node = instantiate(prefab);
node.parent = this.node;
}
private deaded(){
var path = "game/skill/end/atked";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.parent = this.node;
}
// 注意BaseUp 逻辑已移到 HeroAttrSystem.update()
// 注意updateTemporaryBuffsDebuffs 逻辑已移到 HeroAttrSystem.update()
@@ -404,6 +409,7 @@ export class HeroViewComp extends CCComp {
}
// 播放死亡特效
this.deaded();
this.as.dead();