Work on pickups and multiplayer
This commit is contained in:
@@ -65,8 +65,8 @@ func is_multiplayer() -> bool:
|
||||
return multiplayer_game
|
||||
|
||||
|
||||
func start_level(pawns : Dictionary[int, StringName]) -> void:
|
||||
pawns_selected = pawns
|
||||
func start_level(pawn_dict : Dictionary[int, StringName]) -> void:
|
||||
pawns_selected = pawn_dict
|
||||
if !Multiplayer.is_host():
|
||||
return
|
||||
|
||||
@@ -135,11 +135,11 @@ func level_spawned(peer_id : int) -> void:
|
||||
check_level_ready()
|
||||
|
||||
func check_level_ready() -> void:
|
||||
var ready : bool = true
|
||||
var level_ready : bool = true
|
||||
for id in level_synced:
|
||||
if level_synced[id] == false:
|
||||
ready = false
|
||||
if ready:
|
||||
level_ready = false
|
||||
if level_ready:
|
||||
level.setup()
|
||||
|
||||
func oneshot(stream : AudioStream) -> void:
|
||||
|
||||
Reference in New Issue
Block a user