25 lines
580 B
C#
25 lines
580 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace MedievalShopkeeper
|
||
|
|
{
|
||
|
|
public class ShopLedger : Interactable
|
||
|
|
{
|
||
|
|
public override string InteractionPrompt => "Open Shop Inventory";
|
||
|
|
|
||
|
|
public override void Interact(PlayerController player)
|
||
|
|
{
|
||
|
|
base.Interact(player);
|
||
|
|
|
||
|
|
if (UIManager.Instance != null)
|
||
|
|
{
|
||
|
|
UIManager.Instance.OpenInventoryMenu(player);
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
Debug.LogWarning("[ShopLedger] No UIManager found to open the inventory menu!");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|