refactor to state machine
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user