void moveCustomerClick(GameObject customer) { CustomerView customerView = customer.GetComponent <CustomerView>(); customerView.Resume(); moveCustomerCanvas.SetActive(true); gameObject.SetActive(false); }
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; }