public MafiaJobType GetSelectedMafiaJobFromWindow()
    {
        Toggle activeToggle = null;

        foreach (Toggle t in MafiaWindowToggleGroup.ActiveToggles())
        {
            activeToggle = t;
            break;
        }
        MafiaJobType job = Utils.ParseEnum <MafiaJobType>(activeToggle.name);

        return(job);
    }
示例#2
0
    IEnumerator DoSelectedMafiaJobCR(MafiaJobType job)
    {
        switch (job)
        {
        case MafiaJobType.DigJob:
            yield return(MafiaDigJobCR());

            break;

        case MafiaJobType.CannonFodder:
            yield return(MafiaCannonFodderCR());

            break;
        }
    }