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

View File

@@ -97,7 +97,6 @@ func create_path() -> void:
func update_path() -> void:
if type != Data.EnemyType.LAND:
return
path.curve.add_point(global_position + Vector3(0, 0.5, 0))
path.curve = Curve3D.new()
var node: FlowNode = flow_field.get_closest_traversable_point(global_position)
path.curve.add_point(node.global_position + Vector3(0, 0.5, 0))