private void OnResourceFocusDropdownChanged(int newValue)
        {
            var newOption = ResourceFocusDropdown.options[newValue];
            var newFocus  = (YieldFocusType)Enum.Parse(typeof(YieldFocusType), newOption.text, true);

            ObjectToDisplay.YieldFocus = newFocus;
            ObjectToDisplay.PerformDistribution();
        }
예제 #2
0
    private void OnStartFinalDays()
    {
        foreach (GameObject ObjectToDisplay in Objects)
        {
            ObjectToDisplay.SetActive(true);
        }

        foreach (GameObject ObjectToDisplay in ObjectsToHide)
        {
            ObjectToDisplay.SetActive(false);
        }
    }
예제 #3
0
        private void OnSlotClicked(IWorkerSlot slot)
        {
            if (ObjectToDisplay == null)
            {
                return;
            }

            if (slot.IsOccupied && !slot.IsLocked)
            {
                LockOccupiedSlot(slot);
            }
            else if (slot.IsOccupied && slot.IsLocked)
            {
                UnassignLockedSlot(slot);
            }
            else
            {
                AssignAndLockUnoccupiedSlot(slot);
            }

            ObjectToDisplay.PerformDistribution();
        }