refactor to state machine

This commit is contained in:
2025-02-02 01:08:44 +09:00
parent c8c5c08b4d
commit be682b2813
18 changed files with 379 additions and 121 deletions
+19
View File
@@ -0,0 +1,19 @@
class_name State
extends Node
var subject
func enter() -> void:
pass
func exit() -> void:
pass
func process_input(_event: InputEvent) -> State:
return null
func process_frame(_delta: float) -> State:
return null
func process_physics(_delta: float) -> State:
return null