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(); }