private EventInterface getRandomEvent(String banEventType) { EventInterface et = events[random.Next(events.Count)]; if (et.getEventType() == banEventType) { return(getRandomEvent(banEventType)); } else { return(et); } }
public void setEvent(EventInterface ei) { eventsList.Add(ei.getEventType(), ei); }
public void setRoomEvent(EventInterface ei) { // Debug.Log("set event " + ei.getEventType()); eventsList.Add(ei.getEventType(), ei); }