update room handle state management

This commit is contained in:
betalars 2023-06-25 23:49:36 +02:00
parent 0fa2cae3a4
commit 36529e8208
1 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func _process(delta):
func start(): func start():
$light_animation.play("light_up") $light_animation.play("light_up")
$AudioPlayer.play("intro") $AudioPlayer.play("intro")
State.assign_focus_to($PlayerController) State.pass_focus_to($PlayerController)
current_mode = Modes.WALKING current_mode = Modes.WALKING
func _update_scene(new_mode) -> int: func _update_scene(new_mode) -> int:
@ -37,7 +37,6 @@ func _update_scene(new_mode) -> int:
elif new_mode == Modes.FREEZE: elif new_mode == Modes.FREEZE:
emit_signal("freeze") emit_signal("freeze")
return new_mode return new_mode
func _unhandled_input(event): func _unhandled_input(event):