21 lines
317 B
GDScript
21 lines
317 B
GDScript
class_name State
|
|
extends Node
|
|
|
|
var subject
|
|
|
|
func enter() -> void:
|
|
print("Entering state: %s" % name)
|
|
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
|