Пример #1
0
    void moveCustomerClick(GameObject customer)
    {
        CustomerView customerView = customer.GetComponent <CustomerView>();

        customerView.Resume();
        moveCustomerCanvas.SetActive(true);
        gameObject.SetActive(false);
    }
Пример #2
0
 void backClick(GameObject customer)
 {
     gameObject.SetActive(false);
     if (customer != null)
     {
         CustomerView customerView = customer.GetComponent <CustomerView>();
         customerView.isSelected = false;
         customerView.Resume();
     }
     else
     {
         CustomerView customerView = people.transform.GetChild(0).GetComponent <CustomerView>();
         customerView.Resume();
     }
     canClickCustomers = true;
 }