Ignored .import, new Statemachine script

This commit is contained in:
Jakob Feldmann 2020-08-09 16:20:39 +02:00
parent 2c4d089643
commit bbe611c1aa
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/.import/

View 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