public void ReleaseChildren(AtlasNodePool pool) { if (IsLeafNode()) { return; } pool.m_Nodes[m_LeftChild].ReleaseChildren(pool); pool.m_Nodes[m_RightChild].ReleaseChildren(pool); pool.AtlasNodeFree(m_LeftChild); pool.AtlasNodeFree(m_RightChild); m_LeftChild = -1; m_RightChild = -1; }