private void FoodOnTable(FoodScript foodScript) { foodLeftToEat.Remove(foodScript.CustomerId); table.OrderGui.RemoveImage(foodScript.CustomerId); if (foodLeftToEat.Count <= 0) { OrdersManager.CompleteOrder(color); GameManager.singleton.RunCoroutine(CustomersManager.singleton.WaitForEating(table.SittingCustomers)); table.TableDetector.gameObject.SetActive(false); table.OrderGui.HideIcons(); } // TODO: Pooling for food Object.Destroy(foodScript.gameObject); }
public void CancelOrder() { OrdersManager.CompleteOrder(color); table.TableDetector.gameObject.SetActive(false); }