32 lines
1.3 KiB
C#
32 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Localization;
|
|
using UnityEngine.Localization.Settings;
|
|
|
|
namespace TRInventoryUpdatable
|
|
{
|
|
public class WillAndTestamentInventoryItem : MonoBehaviour, InventoryUpdatable, IUsable
|
|
{
|
|
[SerializeField] RedableMenuItem redableMenuItem;
|
|
|
|
public LocalizedString lastWillAndTestamentMessage;
|
|
public LocalizedString lastWillAndTestamentDescriptionMessage;
|
|
|
|
public void InventoryUpdate()
|
|
{
|
|
string localizedlastWillAndTestamentMessage = LocalizationSettings.StringDatabase.GetLocalizedString("Collectibles", "lastWillAndTestament");
|
|
string localizedlastWillAndTestamentDescriptionMessage = LocalizationSettings.StringDatabase.GetLocalizedString("Collectibles", "lastWillAndTestament");
|
|
|
|
InventoryManager.GetInstance().ringInventoryGear.itemName.text = localizedlastWillAndTestamentMessage;
|
|
InventoryManager.GetInstance().ringInventoryGear.itemDescription.text = localizedlastWillAndTestamentDescriptionMessage;
|
|
}
|
|
|
|
public void Use()
|
|
{
|
|
//Nothing to see here girl.
|
|
//There's now something here girl!
|
|
redableMenuItem.DisplayRedableItemEntryOnClick();
|
|
}
|
|
}
|
|
} |