From 52a6f6b3c56263b2bdde9139caf925691993e412 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Tue, 5 May 2026 14:46:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor(EntityBase):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=AD=A6=E5=99=A8?= =?UTF-8?q?=E5=AD=90=E8=8A=82=E7=82=B9=E7=9A=84=E9=87=8A=E6=94=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于武器子节点在发布模式下隐藏而非释放,移除了冗余的queue_free调用以简化代码 --- scripts/Statemachine/EntityBase.gd | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index e093dd8..8e69d0e 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -136,9 +136,6 @@ func _ready(): if isPlayer(): if displayName == MultiplayerState.playerName: UIState.player = self - if WorldManager.isRelease(): - for i in weaponStore.get_children(): - i.queue_free() for i in weaponStore.get_children(): i.hide() weapons.append(i)