private void OnEmployeeCell(ButtonScript obj, object args, int param1, int param2) { EmployeeCellUI cell = obj.GetComponent <EmployeeCellUI> (); if (cell == null || cell.Employee == null) { return; } if (selectObj == null) { selectObj = obj.gameObject; selectObj.transform.FindChild("select").gameObject.SetActive(true); } else if (selectObj != obj.gameObject) { selectObj.transform.FindChild("select").gameObject.SetActive(false); } Employee employee = cell.Employee; if (employee == null) { return; } employee = GamePlayer.Instance.GetEmployeeById(employee.InstId); EmployessSystem.instance.CurEmployee = employee; EmployeeListUI.ShowMe(); }
IEnumerator DelayOneClick() { yield return(new WaitForSeconds(0.3f)); if (!bDouble) { EmployeeListUI.ShowMe(); } }