1
This commit is contained in:
16
Assets/Artists/Scripts/Item/ItemExtensions.cs
Normal file
16
Assets/Artists/Scripts/Item/ItemExtensions.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user