1
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user