fix(hero): 调整英雄预制体和视图组件的锚点及尺寸

修改多个英雄预制体的锚点y坐标和高度尺寸,统一调整英雄视图组件的显示位置
禁用atk_s1和atk_s2技能节点的_enabled属性
移除HeroViewComp中对boss的特殊位置处理逻辑
This commit is contained in:
2025-11-02 13:40:01 +08:00
parent 187153ac9e
commit 0d76fd4050
14 changed files with 25 additions and 25 deletions

View File

@@ -68,9 +68,9 @@ export class HeroViewComp extends CCComp {
/** 方向 */
this.node.setScale(this.scale,1);
this.top_node.setScale(this.scale,1);
if(this.model && this.model.is_boss){
this.top_node.position=v3(this.node.position.x,this.node.position.y+70,0)
}
// if(this.model && this.model.is_boss){
// this.top_node.position=v3(this.node.position.x,this.node.position.y+70,0)
// }
/* 显示角色血*/
this.top_node.getChildByName("hp").active = true;
this.usePower=HeroInfo[this.model.hero_uuid].type==HType.warrior||HeroInfo[this.model.hero_uuid].type==HType.assassin;