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(); }
private void OnStartFinalDays() { foreach (GameObject ObjectToDisplay in Objects) { ObjectToDisplay.SetActive(true); } foreach (GameObject ObjectToDisplay in ObjectsToHide) { ObjectToDisplay.SetActive(false); } }
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(); }