예제 #1
0
    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);
    }
예제 #2
0
 public void CancelOrder()
 {
     OrdersManager.CompleteOrder(color);
     table.TableDetector.gameObject.SetActive(false);
 }