1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

refactor(EntityBase): 移除发布模式下武器子节点的释放逻辑

由于武器子节点在发布模式下隐藏而非释放,移除了冗余的queue_free调用以简化代码
This commit is contained in:
2026-05-05 14:46:55 +08:00
parent 75adfed454
commit 52a6f6b3c5
-3
View File
@@ -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)