11 lines
218 B
GDScript
11 lines
218 B
GDScript
extends State
|
|
|
|
@onready var agent: AIBase = owner
|
|
|
|
func enter() -> void:
|
|
agent.navigate_to_random_point()
|
|
|
|
func update(_delta) -> void:
|
|
if agent.nav_agent.is_navigation_finished():
|
|
transitioned.emit(self, "idle")
|