2023-06-08 14:09:50 +08:00
|
|
|
using BITFALL;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
|
|
|
|
namespace BITKit
|
|
|
|
{
|
|
|
|
public static class ItemExtensions
|
|
|
|
{
|
|
|
|
public static AssetableItem GetAssetable(this IBasicItem self)
|
|
|
|
{
|
2023-09-01 14:33:54 +08:00
|
|
|
return Addressables.LoadAssetAsync<AssetableItem>(self.AddressablePath).WaitForCompletion();
|
2023-06-08 14:09:50 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|