예제 #1
0
 public static void OnDestroy()
 {
     if (Asset != null)
     {
         Asset.Dispose();
         Asset = null;
     }
     if (Data != null)
     {
         Data.Dispose();
         Data = null;
     }
 }
예제 #2
0
 void OnDestroy()
 {
     if (_asset != null)
     {
         _asset.Dispose();
         _asset = null;
     }
     if (_data != null)
     {
         _data.Dispose();
         _data = null;
     }
 }
예제 #3
0
 public void Dispose()
 {
     AssetPack.Dispose();
     DataPack.Dispose();
 }
예제 #4
0
        //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;
        }