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

16 lines
399 B
C#

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)
{
return Addressables.LoadAssetAsync<AssetableItem>(self.AddressablePath).WaitForCompletion();
}
}
}