public void NewMission() { if (CheckWin()) return; currentMission = new Mission(); List<Appearance> npcs = GameObject.Find("GameManager").GetComponent<NPCs>().Npcs; Appearance target = npcs[Random.Range(0, npcs.Count)]; int partsNumber = ritualNumber; if (ritualNumber == 0) partsNumber = 4; for (int i = 0; i < partsNumber; i++) { while (!currentMission.AddPart(target.Parts[Random.Range(0, target.Parts.Length)])); } killerUI.SetMission(ritualNumber, currentMission); }