public void RpcServerTakeOrder() { // Debug.Log("Table Script - RpcServerTakeOrder"); //stop the patience script patienceScript.StopPatienceMeter(); //disable the order icon UI tableFeedbackScript.ToggleOrderIcon(false); //pass all the orders to the kitchen // Debug.Log("All orders: " + tableOrders); //display the customer's order and make them wait foreach (GameObject customer in customersSeated) { customer.GetComponent <CustomerBehaviour_Seated>().DisplayOrderAndWait(); //pass customer orders to kitchen MobileVR_OrderManagement.Instance.AddOrderToList(customer.GetComponent <CustomerBehaviour_Seated>().CustomersOrder.RoastedChic, customer.GetComponent <CustomerBehaviour_Seated>().CustomersOrder.RicePlain, customer.GetComponent <CustomerBehaviour_Seated>().CustomersOrder.HaveEgg); } //move the table collider back to the environment layer TableColliderManager.Instance.ToggleTableDetection(false, this.gameObject); }
//Patience Meter is started / stopped, depending on the bool passed into it public void TriggerPatienceMeter(bool startPatience, float waitTime = 0f, Action callback = null) { if (CustomerPatienceScript != null) { if (startPatience) { CustomerPatienceScript.StartPatienceMeter(waitTime, callback); } else { CustomerPatienceScript.StopPatienceMeter(); } } else { Debug.Log("Please assign the customer patience script to the customer prefab"); } }