Exemple #1
0
    public void OnCustomDrop(GameObject customer)
    {
        if (customer.tag != "customer")
        {
            return;
        }

        CustomerView customerView = customer.GetComponent <CustomerView>();

        if (customerView)
        {
            if (zoneModel.queueOpen)
            {
                customerView.CustomerDroppedInZone(zoneModel);
            }
            else
            {
                GameObject fullIcon = Instantiate(God.instance.feedbackIconPrefab, customer.transform.position, Quaternion.identity) as GameObject;
                fullIcon.GetComponent <FeedbackIcon>().icon = FeedbackIcon.Icons.Full;
                AudioManager.instance.PlayAudioForIcon(FeedbackIcon.Icons.Full);
            }
        }
    }