added player count to ui
This commit is contained in:
1 parent
d3eb64493c
commit
d2f639dc14
3 files changed
+28
-2
No files matched your search
@@ -36,6 +36,7 @@ func _prep_scene(scene_name) -> Node:
|
||||
return _win_screen_scene
|
||||
return null
|
||||
|
||||
|
||||
func _switch_scene(scene, scene_name):
|
||||
#delete children
|
||||
for child in get_children():
|
||||
@@ -64,6 +65,9 @@ func _switch_to_fighting(torso):
|
||||
if _body_count < InGameState.player_count:
|
||||
_bodies.append(torso)
|
||||
_switch_scene(_body_build_scene, "body_build")
|
||||
|
||||
_body_build_scene.done_player_count = _body_count
|
||||
_body_build_scene.change_count_ui()
|
||||
else:
|
||||
_switch_scene(_fighting_scene, "fight_scene")
|
||||
|
||||
@@ -74,5 +78,3 @@ func _switch_to_fighting(torso):
|
||||
|
||||
func _switch_to_body_build():
|
||||
_switch_scene(_body_build_scene, "body_build")
|
||||
|
||||
|
||||
Reference in new issue
Block a user