public IEnumerator DoProcessUI(EventBase e) { activeEvent = e; yield return StartCoroutine(e.Action()); activeEvent = null; }