Esempio n. 1
0
    public void RpcSpawnDirtyDish(GameObject dirtyDish)
    {
        dirtyDish.GetComponent <DirtyDishScript>().SetTableScript(tableSeatedAt);

        dirtyDish.layer = LayerMask.NameToLayer("TableItem");


        CustomerFeedbackScript.PlayEatingPFX(false);
        CustomerAnimScript.StopEatingAnim();
    }
Esempio n. 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);
    }