npcs and enemies now inherit from character state
This commit is contained in:
@@ -27,11 +27,8 @@ func Update(delta):
|
||||
Transitioned.emit(self,"idle")
|
||||
|
||||
func Physics_Update(delta):
|
||||
#draw target for debug purposes
|
||||
debug_marker(move_target)
|
||||
|
||||
#if navigation is finished get new point, otherwise continue on path
|
||||
if enemy.nav_agent.is_navigation_finished():
|
||||
if character.nav_agent.is_navigation_finished():
|
||||
if has_points_to_investigate():
|
||||
get_new_point_of_interest()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user