BITFALL/Assets/Artists/Scripts/Item/ItemExtensions.cs

16 lines
399 B
C#
Raw Normal View History

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
}
}
}