feat: update
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user