13 lines
175 B
GDScript3
13 lines
175 B
GDScript3
|
extends Node
|
||
|
class_name State
|
||
|
|
||
|
var state_machine: StateMachine
|
||
|
|
||
|
func is_active():
|
||
|
return state_machine.current_state == self
|
||
|
|
||
|
func _on_enter():
|
||
|
pass
|
||
|
|
||
|
func _on_leave():
|
||
|
pass
|