feat: update

This commit is contained in:
2026-04-28 01:22:38 +08:00
parent b76dd2e737
commit 1585b91509
9 changed files with 529 additions and 229 deletions
+10
View File
@@ -595,6 +595,16 @@ func sync_loadout(loadout_data: Dictionary) -> void:
_player_loadout = loadout_data
# Pass 'self' as character_root — SkinManager will find $Oldpop/$Bob/etc. by name
SkinManager.apply_loadout(self, _player_loadout)
# Re-apply outline shader to ensure it's present after skin changes
var active_character: Node3D = null
match _selected_character:
"Bob": active_character = character_bob
"Masbro": active_character = character_masbro
"Gatot": active_character = character_gatot
"Oldpop": active_character = character_oldpop
if active_character:
_apply_outline_recursive(active_character)
func _setup_character() -> void:
"""Initialize character based on LobbyManager selection or defaults."""