remove the whole frustrum collider from SelectionManager and make units add themselves to visible

This commit is contained in:
2024-10-13 20:47:58 +10:00
parent 2e66680d52
commit d89c177521
2 changed files with 18 additions and 59 deletions

View File

@@ -139,7 +139,9 @@ func _on_nav_agent_velocity_computed(safe_velocity: Vector3) -> void:
func _on_visibility_notifier_screen_entered() -> void:
_is_on_screen = true
SelectionManager.add_unit_to_visible(self)
func _on_visibility_notifier_screen_exited() -> void:
_is_on_screen = false
SelectionManager.remove_unit_from_visible(self)