public void AddSelectedObject(ProjectObject projectObject)
    {
        if (ProjectObjects.instance.CheckIfObjectIsSelectable(projectObject))
        {
            if (!selectingKit)
            {
                DeselectSelection();
            }
            selectedObjects.Add(projectObject);
            projectObject.interactiveSelect.HighlightObject();
            lastSelectedObject = projectObject;
            InstatiateSelectedObjectUI();

            bool selectionPlannable = true;
            for (int i = 0; i < selectedObjects.Count; i++)
            {
                selectionPlannable = ProjectObjects.instance.CheckIfObjectIsPlannable(selectedObjects[i]);
                if (!selectionPlannable)
                {
                    break;
                }
            }
            planMenuButton.SetDisabled(!selectionPlannable);
            infoMenuButton.SetDisabled(false);
            selectPrereqsButton.SetDisabled(false);
        }
    }
Exemple #2
0
 public void InitializeMyWorkButton()
 {
     myWorkButton.SetDisabled(Activities.instance.userIsGC);
 }