Update ResourceKit.cs

This commit is contained in:
2025-05-08 18:29:14 +08:00
parent c822bb6f6c
commit 141166fc02
@@ -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);
}
}
}