refactor(animation): 更新动画和预设资源优化表现

- notify.anim 新增位置向量轨迹和关键帧曲线数据,丰富动画表现
- notify.prefab 增加和调整节点、组件及属性,提升UI结构和视觉布局
- hero hc1 的 move.anim 动画时长和帧数据调整,优化动作流畅度
- atk_fires.prefab 添加 withHero 属性以支持技能表现扩展
- 删除了 game/skills 目录下的 buff.prefab 和 buff_iced.prefab 资源,清理无用资源
This commit is contained in:
2025-10-22 16:06:37 +08:00
parent e1f0492f34
commit d987e0806f
22 changed files with 1479 additions and 210 deletions

View File

@@ -16,7 +16,9 @@ export class SkillViewCom extends CCComp {
@property({ type: Prefab })
atkPrefab: Prefab = null!
@property
hasReady: boolean = false;
hasReady: boolean = false
@property
withHero: boolean = true
@property
ReadyLoop: boolean = false // 预备是否循环
@property({ type: CCFloat })
@@ -55,6 +57,7 @@ export class SkillViewCom extends CCComp {
start() {
// var entity = this.ent as ecs.Entity; // ecs.Entity 可转为当前模块的具体实体对象
this.node.getChildByName("ready").active = this.hasReady
this.node.setPosition(this.caster.node.position.x,this.caster.node.position.y+this.ready_y)
}
protected update(dt: number): void {
this.doTimer(dt)
@@ -144,7 +147,7 @@ export class SkillViewCom extends CCComp {
}
move(dt: number): void {
// console.log(`${this.cName}_[SkillViewCom] move`)
if(this.caster != null&&this.caster.node!=null) this.node.setPosition(this.caster.node.position.x,this.caster.node.position.y+this.ready_y)
if(this.caster != null&&this.caster.node!=null&&this.withHero) this.node.setPosition(this.caster.node.position.x,this.caster.node.position.y+this.ready_y)
// console.log(`${this.cName}_[skillview]move`,this.caster.node.position,this.node.position)
}
reset() {