fix(skills): 修正技能预制体锚点并添加调试日志

- 将atk1和atk2技能预制体的锚点y值从0.5改为0
- 在SkillConComp中加载技能时添加uuid为6001时的起始坐标日志输出
- 在Skill加载函数中,uuid为6001时输出加载起始坐标日志
- 在SkillCom组件中,uuid为6001时输出起始位置日志
- 删除HeroPageComp中load_hero函数的实现内容,保留函数体
- 修正Skill加载时节点父级赋值逻辑,确保正确设置父节点
This commit is contained in:
2025-10-13 13:27:40 +08:00
parent c86fac4ce7
commit 22726eed3b
6 changed files with 14 additions and 17 deletions

View File

@@ -133,6 +133,9 @@ export class SkillCom extends CCComp {
this.do_anim()
break;
case AType.fixedStart: //
if(this.s_uuid==6001){
console.log("skillcom startPos",this.startPos)
}
this.node.setPosition(this.startPos.x > 360?300:this.startPos.x,0,0)
this.do_anim()
break;