Exemplo n.º 1
0
        public static void StopListening(string eventName, UnityAction <GameEventArgs> listener)
        {
            if (Instance == null)
            {
                return;
            }
            GameEvent thisEvent = null;

            if (Instance.eventDictionary.TryGetValue(eventName, out thisEvent))
            {
                thisEvent.RemoveListener(listener);
            }
        }