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); }
public void Init(Color newColor, int orderId, int customerId) { OrderId = orderId; CustomerId = customerId; ColorScript.SetColor(meshRenderer, newColor); }