mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-28 19:48:47 +00:00
为handle 添加 using 支持
This commit is contained in:
@@ -1,9 +1,22 @@
|
|||||||
using System.Collections;
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
|
||||||
namespace YooAsset
|
namespace YooAsset
|
||||||
{
|
{
|
||||||
public abstract class OperationHandleBase : IEnumerator
|
public abstract class OperationHandleBase : IEnumerator, IDisposable
|
||||||
{
|
{
|
||||||
|
private bool _isDisposed;
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
if (_isDisposed)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
_isDisposed = true;
|
||||||
|
ReleaseInternal();
|
||||||
|
}
|
||||||
|
|
||||||
private readonly AssetInfo _assetInfo;
|
private readonly AssetInfo _assetInfo;
|
||||||
internal ProviderBase Provider { private set; get; }
|
internal ProviderBase Provider { private set; get; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user