feat(skill): 新增死亡动画及预制体资源
添加 dead.prefab 预制体及其关联的 dead.anim 动画文件,用于角色死亡时的技能表现。
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user