Projekt_SI_automatyczny_kelner/Assets/Logic/UI/UITableComponent.cs

26 lines
564 B
C#

using Logic.Graph;
using UnityEngine;
using UnityEngine.UI;
namespace Logic.UI
{
public class UITableComponent : MonoBehaviour
{
public Text tableValue;
public Text statusValue;
public UIInventorySlot inventorySlot;
public CustomerTable table;
private void Awake()
{
var button = GetComponentInChildren<Button>();
button.onClick.AddListener( ButtonClick );
}
private void ButtonClick()
{
AgentManager.Instance.GoToNode(table);
}
}
}