using System; using System.Collections; 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) { StartCoroutine(waitress.GoToNode(table)); } public bool AddItem(Item item) { return inventory.AddItem(item); } public List GetRecipes() { return inventory.GetRecipes(); } public Food GETMealForTable(int tableId) { return inventory.GETMealForTable(tableId); } public void RemoveItem(Item item) { inventory.RemoveItem(item); } public void RunToAnotherNode(Node destination) { StartCoroutine(waitress.RunToAnotherNode(destination)); } } }