From 0d76fd4050bb844f7c7fab179d6d13336f149151 Mon Sep 17 00:00:00 2001 From: walkpan Date: Sun, 2 Nov 2025 13:40:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero):=20=E8=B0=83=E6=95=B4=E8=8B=B1?= =?UTF-8?q?=E9=9B=84=E9=A2=84=E5=88=B6=E4=BD=93=E5=92=8C=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=9A=84=E9=94=9A=E7=82=B9=E5=8F=8A=E5=B0=BA?= =?UTF-8?q?=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改多个英雄预制体的锚点y坐标和高度尺寸,统一调整英雄视图组件的显示位置 禁用atk_s1和atk_s2技能节点的_enabled属性 移除HeroViewComp中对boss的特殊位置处理逻辑 --- assets/resources/game/heros/ha1.prefab | 4 ++-- assets/resources/game/heros/hc1.prefab | 4 ++-- assets/resources/game/heros/hh1.prefab | 4 ++-- assets/resources/game/heros/hk1.prefab | 2 +- assets/resources/game/heros/hm1.prefab | 4 ++-- assets/resources/game/heros/hm2.prefab | 4 ++-- assets/resources/game/heros/hz1.prefab | 4 ++-- assets/resources/game/heros/mo1.prefab | 4 ++-- assets/resources/game/heros/mo2.prefab | 4 ++-- assets/resources/game/heros/mo3.prefab | 4 ++-- assets/resources/game/heros/mo4.prefab | 2 +- assets/resources/game/skill/atk/atk_s1.prefab | 2 +- assets/resources/game/skill/atk/atk_s2.prefab | 2 +- assets/script/game/hero/HeroViewComp.ts | 6 +++--- 14 files changed, 25 insertions(+), 25 deletions(-) diff --git a/assets/resources/game/heros/ha1.prefab b/assets/resources/game/heros/ha1.prefab index e114ec26..51401d0a 100644 --- a/assets/resources/game/heros/ha1.prefab +++ b/assets/resources/game/heros/ha1.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 80 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/hc1.prefab b/assets/resources/game/heros/hc1.prefab index 9ab046b0..0cd1ec6a 100644 --- a/assets/resources/game/heros/hc1.prefab +++ b/assets/resources/game/heros/hc1.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 80 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/hh1.prefab b/assets/resources/game/heros/hh1.prefab index b732468b..3f97e9b5 100644 --- a/assets/resources/game/heros/hh1.prefab +++ b/assets/resources/game/heros/hh1.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 90 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/hk1.prefab b/assets/resources/game/heros/hk1.prefab index 1829e613..5e68027c 100644 --- a/assets/resources/game/heros/hk1.prefab +++ b/assets/resources/game/heros/hk1.prefab @@ -897,7 +897,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 80 }, "_anchorPoint": { "__type__": "cc.Vec2", diff --git a/assets/resources/game/heros/hm1.prefab b/assets/resources/game/heros/hm1.prefab index ada98b3a..84c71aa5 100644 --- a/assets/resources/game/heros/hm1.prefab +++ b/assets/resources/game/heros/hm1.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 90 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/hm2.prefab b/assets/resources/game/heros/hm2.prefab index ce48660a..ae071853 100644 --- a/assets/resources/game/heros/hm2.prefab +++ b/assets/resources/game/heros/hm2.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 8 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/hz1.prefab b/assets/resources/game/heros/hz1.prefab index f0c7f355..5a25e30a 100644 --- a/assets/resources/game/heros/hz1.prefab +++ b/assets/resources/game/heros/hz1.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 90 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/mo1.prefab b/assets/resources/game/heros/mo1.prefab index 589f6b35..b7f85290 100644 --- a/assets/resources/game/heros/mo1.prefab +++ b/assets/resources/game/heros/mo1.prefab @@ -894,12 +894,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 70 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/mo2.prefab b/assets/resources/game/heros/mo2.prefab index aac15bbd..225e00f5 100644 --- a/assets/resources/game/heros/mo2.prefab +++ b/assets/resources/game/heros/mo2.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 70 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/mo3.prefab b/assets/resources/game/heros/mo3.prefab index 86bfaf97..862b5bf5 100644 --- a/assets/resources/game/heros/mo3.prefab +++ b/assets/resources/game/heros/mo3.prefab @@ -897,12 +897,12 @@ "_contentSize": { "__type__": "cc.Size", "width": 80, - "height": 100 + "height": 80 }, "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.2 }, "_id": "" }, diff --git a/assets/resources/game/heros/mo4.prefab b/assets/resources/game/heros/mo4.prefab index 5c891098..61384aff 100644 --- a/assets/resources/game/heros/mo4.prefab +++ b/assets/resources/game/heros/mo4.prefab @@ -902,7 +902,7 @@ "_anchorPoint": { "__type__": "cc.Vec2", "x": 0.5, - "y": 0 + "y": 0.15 }, "_id": "" }, diff --git a/assets/resources/game/skill/atk/atk_s1.prefab b/assets/resources/game/skill/atk/atk_s1.prefab index f9a72537..07f48cba 100644 --- a/assets/resources/game/skill/atk/atk_s1.prefab +++ b/assets/resources/game/skill/atk/atk_s1.prefab @@ -164,7 +164,7 @@ "node": { "__id__": 2 }, - "_enabled": true, + "_enabled": false, "__prefab": { "__id__": 6 }, diff --git a/assets/resources/game/skill/atk/atk_s2.prefab b/assets/resources/game/skill/atk/atk_s2.prefab index fb05cbde..bee59dc6 100644 --- a/assets/resources/game/skill/atk/atk_s2.prefab +++ b/assets/resources/game/skill/atk/atk_s2.prefab @@ -158,7 +158,7 @@ "node": { "__id__": 2 }, - "_enabled": true, + "_enabled": false, "__prefab": { "__id__": 6 }, diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index 0be85a09..ae7d1dc8 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -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;