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

fix(多人游戏): 修复玩家实体与UI状态同步问题

修复多人游戏中玩家实体与UI状态不同步的问题,现在当玩家名称匹配时会自动设置UIState.player
移除单机游戏中重复设置UIState.player的代码
为WorldManager添加对象解析功能以支持多人游戏中的对象传输
This commit is contained in:
2025-11-15 07:33:06 +08:00
parent 427ca484d1
commit d8fafcf52a
4 changed files with 24 additions and 11 deletions
+2
View File
@@ -117,6 +117,8 @@ func _ready():
statebar = selfStatebar
statebar.entity = self
if isPlayer():
if displayName == MultiplayerState.playerName:
UIState.player = self
for i in weaponStore.get_children():
i.hide()
weapons.append(i)