godot_simple_state_machine/state_machine_init.gd
2023-02-14 16:07:11 +01:00

9 lines
206 B
GDScript

@tool
extends EditorPlugin
func _enter_tree():
add_custom_type("StateMachine", "Node2D", preload("state_machine.gd"), preload("state_machine.png"))
func _exit_tree():
remove_custom_type("StateMachine")