public void Dispose() { deactivated = true; //blocks = null; //SurfaceData = null; //BlockTypes = null; //AtlasUvs = null; //neighbors = null; if (NoisePlane != null) { NoisePlane.Clear(); NoisePlane.Dispose(); } NoisePlane = null; NoiseModule = null; caveModule = null; }