Projekt_SI_automatyczny_kelner/Assets/Logic/AgentManager.cs

46 lines
987 B
C#
Raw Normal View History

using System.Collections.Generic;
using Logic.Agent;
using Logic.Data;
using Logic.Graph;
using UnityEngine;
namespace Logic
{
public class AgentManager: MonoBehaviour
{
public static AgentManager Instance;
[SerializeField] private Waitress waitress;
[SerializeField] private WaitressInventory inventory;
private void Awake()
{
Instance = this;
}
public void GoToNode(Table table)
{
waitress.GoToNode(table);
}
public bool AddItem(Item item)
{
return inventory.AddItem(item);
}
public List<Recipe> GetRecipes()
{
return inventory.GetRecipes();
}
public Food GETMealForTable(int tableId)
{
return inventory.GETMealForTable(tableId);
}
public void RemoveItem(Item item)
{
inventory.RemoveItem(item);
}
}
}