mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-12 04:52:54 +08:00
refactor(EntityBase): 移除发布模式下武器子节点的释放逻辑
由于武器子节点在发布模式下隐藏而非释放,移除了冗余的queue_free调用以简化代码
This commit is contained in:
@@ -136,9 +136,6 @@ func _ready():
|
|||||||
if isPlayer():
|
if isPlayer():
|
||||||
if displayName == MultiplayerState.playerName:
|
if displayName == MultiplayerState.playerName:
|
||||||
UIState.player = self
|
UIState.player = self
|
||||||
if WorldManager.isRelease():
|
|
||||||
for i in weaponStore.get_children():
|
|
||||||
i.queue_free()
|
|
||||||
for i in weaponStore.get_children():
|
for i in weaponStore.get_children():
|
||||||
i.hide()
|
i.hide()
|
||||||
weapons.append(i)
|
weapons.append(i)
|
||||||
|
|||||||
Reference in New Issue
Block a user