public void SetJobType(Dispensary.JobType newType) { jobType = newType; jobText.text = newType.ToString(); if (jobType == Dispensary.JobType.None) { errorImage.gameObject.SetActive(true); if (slot.slotItem != null) { Destroy(slot.slotItem.gameObject); slot.slotItem = null; } } else { errorImage.gameObject.SetActive(false); CreateJobDisplayObject(); } staff.SetJobType(newType); }
public void SetJobType(Dispensary.JobType newJobType) { parentStaff.SetJobType(newJobType); CreateJob(); }