23 lines
712 B
C#
23 lines
712 B
C#
using UnityEngine;
|
|
using UnityEngine.Localization;
|
|
|
|
namespace TRInventoryUpdatable
|
|
{
|
|
public class RegularInventoryItem : MonoBehaviour, InventoryUpdatable, IUsable
|
|
{
|
|
public LocalizedString ItemName;
|
|
//public string ItemNameInInventory;
|
|
public LocalizedString ItemDescription;
|
|
|
|
public void InventoryUpdate()
|
|
{
|
|
InventoryManager.GetInstance().ringInventoryGear.itemName.text = ItemName.GetLocalizedString();
|
|
InventoryManager.GetInstance().ringInventoryGear.itemDescription.text = ItemDescription.GetLocalizedString();
|
|
}
|
|
|
|
public void Use()
|
|
{
|
|
InventoryManager.GetInstance().CloseInventory();
|
|
}
|
|
}
|
|
} |