immersive-home/app/lib/utils/state_machine/state.gd

14 lines
211 B
GDScript3
Raw Normal View History

2023-12-19 00:15:48 +02:00
extends Node
2024-03-17 01:14:31 +02:00
## Base Class for all states
2024-04-09 16:35:33 +03:00
class_name MachineState
2023-12-19 00:15:48 +02:00
var state_machine: StateMachine
func is_active():
return state_machine.current_state == self
func _on_enter():
pass
func _on_leave():
pass