예제 #1
0
    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();
    }
예제 #2
0
    IEnumerator DelayOneClick()
    {
        yield return(new WaitForSeconds(0.3f));

        if (!bDouble)
        {
            EmployeeListUI.ShowMe();
        }
    }