rename starting room state to entering
This commit is contained in:
parent
5a9d8d221d
commit
041b26c2bd
3 changed files with 5 additions and 1 deletions
|
|
@ -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 ""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue