public void RpcWrongCustomer() { //play angry anim CustomerFeedbackScript.PlayAngryPFX(); CustomerFeedbackScript.WrongOrderServed(); CustomerPatienceScript.DecreasePatience(CustomerPatienceStats.angryPatienceDecrease); //reduce patience }
public void RpcCustomerWaitsForTooLong() { TriggerCustomerCollider(false, false); CustomerFeedbackScript.PlayAngryPFX(); CustomerFeedbackScript.CustomerLeaves(); CustomerAnimScript.LeaveAnim(); Destroy(this.gameObject, 1f); }
public void RpcLeaveRestaurant(bool isCustomerAngry) { if (isCustomerAngry) { CustomerFeedbackScript.PlayAngryPFX(); tableSeatedAt.GetComponent <TableFeedback>().CustomerLeaves(); } tableSeatedAt.GetComponent <CustomerPatience>().ResetCustomerPatience(); TableColliderManager.Instance.ToggleTableDetection(false); CustomerAnimScript.LeaveAnim(); Destroy(this.gameObject, 1f); }