Merge pull request #52 from gaozhou/main

为handle 添加 using 支持
pull/62/head
何冠峰 2022-12-03 19:00:44 +08:00 committed by GitHub
commit 4abec5a389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -1,9 +1,22 @@
using System.Collections;
using System;
using System.Collections;
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;
internal ProviderBase Provider { private set; get; }