ai and game menu
This commit was merged in pull request #23.
This commit is contained in:
10
core/ai/framework/patrol_state.gd
Normal file
10
core/ai/framework/patrol_state.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user