19 lines
223 B
GDScript3
19 lines
223 B
GDScript3
|
|
class_name State
|
||
|
|
|
||
|
|
extends Node
|
||
|
|
|
||
|
|
##signal transition(new_state_name: StringName)
|
||
|
|
|
||
|
|
func enter() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func exit() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func update() -> void:
|
||
|
|
pass
|
||
|
|
|
||
|
|
func physics_update(_delta: float) -> void:
|
||
|
|
pass
|
||
|
|
|