State machine and crosshair
This commit is contained in:
parent
7d30fa63d1
commit
a32ac09b04
12 changed files with 116 additions and 5 deletions
12
scritps/state_machine/state.gd
Normal file
12
scritps/state_machine/state.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
@abstract
|
||||
extends Node
|
||||
|
||||
|
||||
class_name State
|
||||
|
||||
signal transition(to: StringName)
|
||||
|
||||
@abstract func enter() -> void
|
||||
@abstract func exit() -> void
|
||||
@abstract func update(delta: float) -> void
|
||||
@abstract func physics_update(delta: float) -> void
|
||||
Loading…
Add table
Add a link
Reference in a new issue