public void RpcReadyToOrder()
    {
        //move the table collider to a separate layer
        TableColliderManager.Instance.ToggleTableDetection(true, this.gameObject, takeOrderLayer);

        //enable the UI
        tableFeedbackScript.ToggleOrderIcon(true);

        //animate the customers ordering food
        foreach (GameObject customer in customersSeated)
        {
            customer.GetComponent <CustomerBehaviour_Seated>().CustomerAnimScript.OrderAnim();
        }

        //start the patience script
        patienceScript.StartPatienceMeter(CustomerPatienceStats.CustomerPatience_TakeOrder, OrderNotTaken);
    }
Пример #2
0
 //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");
     }
 }