mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
29 lines
534 B
GDScript
29 lines
534 B
GDScript
extends Node
|
|
# Base interface for all states: it doesn't do anything by itself,
|
|
# but forces us to pass the right arguments to the methods below
|
|
# and makes sure every State object had all of these methods.
|
|
|
|
# warning-ignore:unused_signal
|
|
signal finished(next_state_name)
|
|
|
|
# Initialize the state. E.g. change the animation.
|
|
func enter():
|
|
pass
|
|
|
|
|
|
# Clean up the state. Reinitialize values like a timer.
|
|
func exit():
|
|
pass
|
|
|
|
|
|
func handle_input(_event):
|
|
pass
|
|
|
|
|
|
func update(_delta):
|
|
pass
|
|
|
|
|
|
func _on_animation_finished(_anim_name):
|
|
pass
|