public static void OnDestroy() { if (Asset != null) { Asset.Dispose(); Asset = null; } if (Data != null) { Data.Dispose(); Data = null; } }
void OnDestroy() { if (_asset != null) { _asset.Dispose(); _asset = null; } if (_data != null) { _data.Dispose(); _data = null; } }
public void Dispose() { AssetPack.Dispose(); DataPack.Dispose(); }
//static void TestAllCells() //{ // var cells = ((UltimaDataPack)DataPack).Groups["CELL"].Records; // Log($"CELLS: {cells.Count}"); // foreach (var record in cells.Cast<CELLRecord>()) // Log(record.EDID.Value); //} public static void OnDestroy() { DataPack?.Dispose(); DataPack = null; }