public void Release() { if (m_RightChild != null) { m_RightChild.Release(); m_BottomChild.Release(); } m_RightChild = null; m_BottomChild = null; }
public void Release(ref ObjectPool <AtlasNode> pool) { if (m_RightChild != null) { m_RightChild.Release(ref pool); m_BottomChild.Release(ref pool); pool.Release(m_RightChild); pool.Release(m_BottomChild); } m_RightChild = null; m_BottomChild = null; m_Rect = Vector4.zero; }
public void Reset() { m_Root.Release(); m_Root.m_Rect.Set(m_Width, m_Height, 0, 0); }
public void Release() { m_Root.Release(); m_Root = new AtlasNode(); m_Root.m_Rect.Set(m_Width, m_Height, 0, 0); }
public void Reset() { m_Root.Release(ref m_NodePool); m_Root.m_Rect.Set(m_Width, m_Height, 0, 0); }