
OverlapSphere vs OverlapSphereNonAlloc
Both functions check if there are colliders in a specific radius. Physics.OverlapSphere creates a new Array each time it is called. Physics.OverlapSphereNonAlloc takes a Buffer-Array as argument and just fills it when called. That way it causes less Garbage because…