public MafiaJobType GetSelectedMafiaJobFromWindow() { Toggle activeToggle = null; foreach (Toggle t in MafiaWindowToggleGroup.ActiveToggles()) { activeToggle = t; break; } MafiaJobType job = Utils.ParseEnum <MafiaJobType>(activeToggle.name); return(job); }
IEnumerator DoSelectedMafiaJobCR(MafiaJobType job) { switch (job) { case MafiaJobType.DigJob: yield return(MafiaDigJobCR()); break; case MafiaJobType.CannonFodder: yield return(MafiaCannonFodderCR()); break; } }