25 lines
596 B
C#
25 lines
596 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace MedievalShopkeeper
|
||
|
|
{
|
||
|
|
public class ShopWorkbench : Interactable
|
||
|
|
{
|
||
|
|
public override string InteractionPrompt => "Use Workbench (Build/Move/Sell)";
|
||
|
|
|
||
|
|
public override void Interact(PlayerController player)
|
||
|
|
{
|
||
|
|
base.Interact(player);
|
||
|
|
|
||
|
|
if (UIManager.Instance != null)
|
||
|
|
{
|
||
|
|
UIManager.Instance.OpenWorkbenchMenu(this);
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
Debug.LogWarning("[ShopWorkbench] No UIManager found to open the workbench menu!");
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|