private void Start() { var allSpace = new ReactBox { Left = -ReactBoxLength / 2, Right = ReactBoxLength / 2, Top = ReactBoxLength / 2, Bottom = -ReactBoxLength / 2 }; m_Quadtree = new Quadtree(allSpace); m_Quadtree.Init(FindObjectsOfType <Hitable>().ToList()); m_Cubes = FindObjectsOfType <HitableCube>().ToList(); m_Spheres = FindObjectsOfType <HitableSphere>().ToList(); m_Capsule = FindObjectsOfType <HitableCapsule>().ToList(); }