public static void StopListening(NetworkEventType eventType, UnityAction <InputDataHolder> listener) { AsyncEvent thisEvent = null; if (instance.eventDictionary.TryGetValue(eventType, out thisEvent)) { thisEvent.RemoveListener(listener); } }