Files
tgcc/core/ai/framework/patrol_state.gd
2026-05-30 14:56:28 +00:00

11 lines
229 B
GDScript

extends State
func enter() -> void:
super.enter()
run_animation()
agent.navigate_to_random_point()
func physics_update(_delta) -> void:
if agent.nav_agent.is_navigation_finished():
transitioned.emit(self, next_state_id)