This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -2,7 +2,6 @@ using BITFALL;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace BITKit
{
@@ -10,7 +9,11 @@ namespace BITKit
{
public static AssetableItem GetAssetable(this IBasicItem self)
{
return Addressables.LoadAssetAsync<AssetableItem>(self.AddressablePath).WaitForCompletion();
var task = YooAsset.YooAssets.LoadAssetAsync<AssetableItem>(self.AddressablePath);
task.WaitForAsyncComplete();
return task.AssetObject.As<AssetableItem>();
//return Addressables.LoadAssetAsync<AssetableItem>(self.AddressablePath).WaitForCompletion();
}
}
}