public void UnscribeAllToEvent(string eventName) { UnityEvent uEvent = null; if (eventsList.TryGetValue(eventName, out uEvent)) { uEvent.RemoveAllListeners(); } GenericEvent evt = null; if (genericEventsList.TryGetValue(eventName, out evt)) { evt.RemoveAllListeners(); } }