1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00

fix(UI): 修复EntityStateBar中levelLabel的引用问题

将levelLabel的引用更新为levelLabels以匹配场景中的节点名称,并确保节点在场景树中的唯一性
This commit is contained in:
2025-08-28 12:58:00 +08:00
parent e877655c13
commit 1f2bac326f
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func _ready():
health = fields.get(FieldStore.Entity.MAX_HEALTH)
energy = fields.get(FieldStore.Entity.MAX_ENERGY) * 0.5
if isPlayer():
statebar.levelLabel.hide()
statebar.levelLabels.hide()
UIState.player = self
hurtbox.body_entered.connect(
func(body):