fix: 修复技能节点池逻辑并调整UI显示

- 修复技能节点池获取和回收时的有效性检查,避免无效节点
- 修复技能父节点查找逻辑,增加空值检查
- 调整卡牌UI的文本样式和宽度
- 启用SkillView调试日志以便问题排查
- 修复英雄后撤动画逻辑,取消注释
- 更新加载页面资源引用
This commit is contained in:
panw
2026-03-12 15:58:25 +08:00
parent 01bff64561
commit 9d86be80c7
6 changed files with 2092 additions and 1911 deletions

View File

@@ -460,16 +460,16 @@ export class HeroViewComp extends CCComp {
.start()
}
// if(this.model.fac==FacSet.HERO) {
// let tx=this.node.position.x-5
// if(tx < -320) tx=-320
// tween(this.node)
// .to(0.1, { position:v3(tx,this.node.position.y,0)})
// .call(() => {
// this.isBackingUp = false; // 🔥 动画完成后重置状态
// })
// .start()
// }
if(this.model.fac==FacSet.HERO) {
let tx=this.node.position.x-5
if(tx < -320) tx=-320
tween(this.node)
.to(0.1, { position:v3(tx,this.node.position.y,0)})
.call(() => {
this.isBackingUp = false; // 🔥 动画完成后重置状态
})
.start()
}
}
// 伤害计算和战斗逻辑已迁移到 HeroBattleSystem