1
This commit is contained in:
@@ -5,7 +5,6 @@ using UnityEngine;
|
||||
using BITKit;
|
||||
using System.IO;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEngine.AddressableAssets;
|
||||
|
||||
namespace BITFALL
|
||||
{
|
||||
@@ -18,7 +17,7 @@ namespace BITFALL
|
||||
#endregion
|
||||
#region 接口实现
|
||||
public int Id => GetInstanceID();
|
||||
public string Name => asset.name;
|
||||
public string Name => asset.Name;
|
||||
public string Description => asset.Description;
|
||||
public ItemQuality Quality => asset.Quality;
|
||||
public string AddressablePath => asset.AddressablePath;
|
||||
@@ -50,7 +49,7 @@ namespace BITFALL
|
||||
{
|
||||
if(item is ManagedItem serializableItem)
|
||||
{
|
||||
asset = Addressables.LoadAssetAsync<AssetableItem>(item.AddressablePath).WaitForCompletion();
|
||||
asset = serializableItem.GetAssetable();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user