Example #1
0
    public Order(Color color, int id, Table table)
    {
        this.table    = table;
        this.color    = color;
        this.id       = id;
        foodLeftToEat = new List <int>(table.SittingCustomers.numberOfCustomers);

        table.OrderSphereInteractive.SetAction(PlaceOrder);
        ColorScript.SetColor(table.OrderSphereInteractive.gameObject, color);
    }
Example #2
0
 public void Init(Color newColor, int orderId, int customerId)
 {
     OrderId    = orderId;
     CustomerId = customerId;
     ColorScript.SetColor(meshRenderer, newColor);
 }