public void SelectAllBuildingsInSphere(sphereBounds _s) { System.Diagnostics.Stopwatch sw = System.Diagnostics.Stopwatch.StartNew(); List <entity> entities = new List <entity>(); for (int i = 0; i < gameWorld.entityCount; ++i) { if (Collision.AABBSphereOverlap(gameWorld.entities[i].bounds, _s)) { entities.Add(gameWorld.entities[i]); Debug.Log($"{gameWorld.entities[i].name} was in overlap sphere."); } } sw.Stop(); Debug.Log($"Select All Buildings In Sphere Took {sw.ElapsedMilliseconds}ms"); }