diff --git a/scenes/room/room_state.gd b/scenes/room/room_state.gd index 9bf662d..427d1f9 100644 --- a/scenes/room/room_state.gd +++ b/scenes/room/room_state.gd @@ -1,7 +1,7 @@ class_name RoomState extends State -const STARTING = "Starting" +const ENTERING = "Entering" const PLAYING = "Playing" const EXITING = "Exiting" @@ -35,6 +35,10 @@ func _state_physics_update(_delta: float) -> void: func match_state(exclude: Array[StringName] = []) -> StringName: + if Input.is_action_just_pressed("pause"): + if PAUSED in exclude: return "" + return PAUSED + return "" diff --git a/scenes/room/states/room_starting.gd b/scenes/room/states/room_entering.gd similarity index 100% rename from scenes/room/states/room_starting.gd rename to scenes/room/states/room_entering.gd diff --git a/scenes/room/states/room_starting.gd.uid b/scenes/room/states/room_entering.gd.uid similarity index 100% rename from scenes/room/states/room_starting.gd.uid rename to scenes/room/states/room_entering.gd.uid