This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## State machine usage example | |
## Add states as children to the States node | |
extends Node | |
# Setup fsm | |
onready var fsm = StateMachine.new(self, $States, $States/menu, true) | |
func _process(delta): | |
# Update fsm | |
fsm.process(delta) |