Ejemplo n.º 1
0
 public static void FireOptionSelectedEvent(EventOption eventOption)
 {
     if (OptionSelectedEventReceived != null)
     {
         OptionSelectedEventReceived(eventOption);
     }
 }
 private void OnOptionSelectedEventReceived(EventOption eventOption)
 {
     Debug.Log("Event fired: " + eventOption.ToString());
     if (eventOption.EventResult != null)
     {
         eventOption.EventResult();
     }
     var eventEntities = GetEventEntities();
     var pendingEventEntity = eventEntities.First(entity => entity.gameEventState.EventState == EventState.Presented);
     pendingEventEntity.ReplaceGameEventState(EventState.Dormant);
 }