fix(hero): 调整英雄预制体和视图组件的锚点及尺寸
修改多个英雄预制体的锚点y坐标和高度尺寸,统一调整英雄视图组件的显示位置 禁用atk_s1和atk_s2技能节点的_enabled属性 移除HeroViewComp中对boss的特殊位置处理逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user