Ignored .import, new Statemachine script
This commit is contained in:
parent
2c4d089643
commit
bbe611c1aa
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/.import/
|
||||||
18
src/StateMachines/StateMachine.gd
Normal file
18
src/StateMachines/StateMachine.gd
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
extends Node
|
||||||
|
class_name StateMachine
|
||||||
|
|
||||||
|
var state = null
|
||||||
|
var previous_state = null
|
||||||
|
|
||||||
|
onready var parent = get_parent()
|
||||||
|
|
||||||
|
func _state_logic(delta):
|
||||||
|
pass
|
||||||
|
|
||||||
|
func _get_transition(delta):
|
||||||
|
return null
|
||||||
|
|
||||||
|
func _enter_state(new_state, old_state):
|
||||||
|
pass
|
||||||
|
|
||||||
|
func _exit_state
|
||||||
Loading…
Reference in New Issue
Block a user