Ejemplo n.º 1
0
    //Research
    public void AddMemberMode(ComponentData componentData, Action refreshSlotEmployee)
    {
        addMemberButton.gameObject.SetActive(true);
        addMemberButton.onClick.AddListener(() =>
        {
            componentData.AddMember(employeeData.employeeID);
            employeeData.AddWork("Research:" + componentData.componentID);

            refreshSlotEmployee();

            if (EmployeeListPanel.instance != null)
            {
                EmployeeListPanel.instance.RefreshSlotEmployee();
            }
        });
    }