add base system
This commit is contained in:
10
core/ai/ai_base/patrol_state.gd
Normal file
10
core/ai/ai_base/patrol_state.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user