improve debug manager

This commit is contained in:
2024-10-16 14:25:56 +10:00
parent 460581ce12
commit fc7cb75b23
4 changed files with 57 additions and 40 deletions

View File

@@ -85,6 +85,9 @@ func _handle_navigation() -> void:
var new_velocity := direction * _move_speed
nav_agent.set_velocity(new_velocity)
if visibility_notifier.is_on_screen():
DebugManager.vector("nav" + str(get_instance_id()), global_position, next_pos, Color.BLUE)
func _handle_animation(delta: float) -> void:
if not visibility_notifier.is_on_screen():

View File

@@ -59,7 +59,7 @@ func _process(_delta: float) -> void:
)
if _target != null:
DebugManager.circle(_target.global_position)
DebugManager.circle("gather_targ", _target.global_position)
func _input(event: InputEvent) -> void: