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

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