From 76633e44d354b7b2456112091f8035a43639b31b Mon Sep 17 00:00:00 2001 From: panw Date: Tue, 24 Mar 2026 16:27:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=8B=B1=E9=9B=84=E8=A7=86=E5=9B=BE):=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E8=8B=B1=E9=9B=84=E7=AD=89=E7=BA=A7=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E9=A1=B6=E9=83=A8=E8=8A=82=E7=82=B9=E5=9E=82=E7=9B=B4?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将静态的垂直位置改为基于英雄等级动态计算,使不同等级的英雄在视觉上有所区分 --- assets/script/game/hero/HeroViewComp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index b3c0e964..213a33ce 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -115,7 +115,7 @@ export class HeroViewComp extends CCComp { private initUINodes() { this.top_node = this.node.getChildByName("top"); this.topOpacity = this.top_node.getComponent(UIOpacity) || this.top_node.addComponent(UIOpacity); - this.top_node.setPosition(0, 100, 0); + this.top_node.setPosition(0, 90+this.model.lv*10, 0); this.topBasePos = this.top_node.position.clone(); const hpNode = this.top_node.getChildByName("hp"); if(this.model.fac==FacSet.HERO){