Update ResourceKit.cs
This commit is contained in:
@@ -66,22 +66,5 @@ namespace AibisDream.Framework
|
||||
|
||||
return operation.Result;
|
||||
}
|
||||
|
||||
private static IEnumerator LoadCoroutine<T>(AsyncOperationHandle<T> operation, Action<T> onComplete)
|
||||
where T : UnityEngine.Object
|
||||
{
|
||||
yield return operation;
|
||||
|
||||
if (operation.Status == AsyncOperationStatus.Succeeded)
|
||||
{
|
||||
onComplete?.Invoke(operation.Result);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Failed to load addressable");
|
||||
}
|
||||
|
||||
Addressables.Release(operation);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user