17 lines
244 B
GDScript3
17 lines
244 B
GDScript3
|
|
extends Node
|
||
|
|
class_name State
|
||
|
|
|
||
|
|
signal transitioned(state: State, new_state_name: String)
|
||
|
|
|
||
|
|
func _enter() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func _exit() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func _update(_delta: float) -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func _physics_update(_delta: float) -> void:
|
||
|
|
pass
|