added player Finite State Machine

This commit is contained in:
2025-07-19 22:08:07 +10:00
parent 4a26cf0ddb
commit d2dc74d533
39 changed files with 496 additions and 376 deletions

20
PCs/FSM/hero_state.gd Normal file
View File

@@ -0,0 +1,20 @@
class_name HeroState
extends Node
@warning_ignore("unused_signal")
signal state_changed(new_state: HeroState)
@export var hero: Hero
func enter_state() -> void:
pass
func exit_state() -> void:
pass
@warning_ignore("unused_parameter")
func process_state(delta: float) -> void:
pass