Example #1
0
 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);
 }
Example #2
0
 public void Clear()
 {
     m_quadtree = null;
     m_lstRegions.Clear();
 }