public CourtGuest CreateCourtGuest(ReporterType type) { CourtGuest tmp = new CourtGuest(); tmp.reporterType = type; return(tmp); }
public void SpawnCourtGuest(ReporterType guestType) { if (currentCourtGuest != null) { CourtGuest newGuest = CreateCourtGuest(guestType); if (queuedGuestList == null) { queuedGuestList = new List <CourtGuest>(); } queuedGuestList.Add(newGuest); } else { currentCourtGuest = CreateCourtGuest(guestType); } InstantiateCourtGuest(currentCourtGuest.reporterType); }