immersive-home/app/lib/utils/state_machine/state.gd
2024-03-17 00:14:31 +01:00

14 lines
204 B
GDScript

extends Node
## Base Class for all states
class_name State
var state_machine: StateMachine
func is_active():
return state_machine.current_state == self
func _on_enter():
pass
func _on_leave():
pass