This commit is contained in:
CortexCore
2024-12-25 11:11:31 +08:00
parent 0fddf0dc2a
commit 2c714da5b7
4 changed files with 29 additions and 4 deletions

View File

@@ -11,6 +11,10 @@ namespace BITKit.Mod
public static async UniTask<T> LoadAsset<T>(string location) where T : class
{
if (LoadAssetAsyncFactory is null)
{
throw new Exception("LoadAssetAsyncFactory is null!Make sure Processor has been initialized.");
}
foreach (var func in LoadAssetAsyncFactory.CastAsFunc())
{
var value = await func.Invoke(location);