protected override void dispose() { foreach (KeyValuePair <string, Entry> e in detailedMaps) { ResourceHandle <TerrainTexture> tex = e.Value.Map; tex.Dispose(); } detailedMaps.Clear(); singleton = null; }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { terrain0.Dispose(); //terrain2.Dispose(); } terrain0 = null; //terrain2 = null; }