예제 #1
0
    public void RpcGenerateOrder(bool roastedChic, bool ricePlain, bool haveEgg)
    {
        CustomerFeedbackScript.PlayHappyPFX();
        CustomerPatienceScript.CustomerState = CustomerPatienceScript.CustomerOrdering;

        customersOrder = orderGenerationScript.CreateCustomOrder(roastedChic, ricePlain, haveEgg);

        if (customersOrder.OrderIcon != null)
        {
            //instantiate the order icon as the child of the orderIconPos obj

            GameObject orderIcon = Instantiate(customersOrder.OrderIcon, orderIconPos);
            //GameManager.Instance.chickenRiceOrders.Add(customersOrder);
            //NetworkServer.Spawn(orderIcon);
        }
    }
예제 #2
0
    public void RpcEatingFood()
    {
        CustomerPatienceScript.StopOrderPenaltyTimer();

        //play right order feedback
        CustomerFeedbackScript.RightOrderServed();

        //play customer happy anim
        CustomerFeedbackScript.PlayHappyPFX();


        //disable the order icon
        orderIconPos.gameObject.SetActive(false); //may delete later, depending on if clients get this

        CustomerFeedbackScript.PlayEatingPFX();
        CustomerAnimScript.StartEatingAnim();
        //eat for customerEatingDuration amount of time
        TriggerCustomerCollider(false, false);
        Invoke("CustomerFinishedFood", CustomerPatienceStats.customerEatingDuration);
    }