private void _InitQuadTree() { m_quadtree = new Quadtree(m_rect, m_fCellSize); Renderer[] renders = m_srcRoot.GetComponentsInChildren <MeshRenderer>(true); Debug.LogFormat("Total Render: {0}", renders.Length); Quadtree.nReceivedCount = 0; for (int i = 0; i < renders.Length; ++i) { m_quadtree.Receive(renders[i]); } Debug.LogFormat("Receive Render: {0}", Quadtree.nReceivedCount); }
public void Clear() { m_quadtree = null; m_lstRegions.Clear(); }