Implemented state machine & added NPC ship template
This commit is contained in:
parent
2d4eb92751
commit
bda9232e72
15 changed files with 284 additions and 22 deletions
20
scripts/State Machine/state.gd
Normal file
20
scripts/State Machine/state.gd
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
extends Node
|
||||
|
||||
class_name State
|
||||
|
||||
var tree : StateTree
|
||||
|
||||
func enter(_message : Dictionary):
|
||||
pass
|
||||
|
||||
func exit():
|
||||
pass
|
||||
|
||||
func process(_delta):
|
||||
pass
|
||||
|
||||
func physics_process(_delta):
|
||||
pass
|
||||
|
||||
func input(_message : Dictionary):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue