Пример #1
0
        private void Cleanup()
        {
            RemoveSubComponents();

            environs.Dispose();
            normals.Dispose();
            liquids.Dispose();
            wiredNavMesh.Dispose();
            solidNavMesh.Dispose();
        }
Пример #2
0
        private void Cleanup()
        {
            RemoveSubComponents();

            environs.Dispose();
            normals.Dispose();
            liquids.Dispose();
            if (wiredNavMesh != null)
            {
                wiredNavMesh.Dispose();
            }
            if (solidNavMesh != null)
            {
                solidNavMesh.Dispose();
            }
        }