Пример #1
0
    private EventInterface getRandomEvent(String banEventType)
    {
        EventInterface et = events[random.Next(events.Count)];

        if (et.getEventType() == banEventType)
        {
            return(getRandomEvent(banEventType));
        }
        else
        {
            return(et);
        }
    }
Пример #2
0
 public void setEvent(EventInterface ei)
 {
     eventsList.Add(ei.getEventType(), ei);
 }
Пример #3
0
 public void setRoomEvent(EventInterface ei)
 {
     //  Debug.Log("set event " + ei.getEventType());
     eventsList.Add(ei.getEventType(), ei);
 }