void OnDisable()
 {
     OnItemFocused.RemoveListener(UpdateSelectedItem);
     if (UI)
     {
         OnItemFocused.RemoveListener(UI.UpdateSelectedItemUI);
     }
 }
    public static void StopListening(string eventName, UnityAction <GameObject> listener)
    {
        if (eventManager == null)
        {
            return;
        }
        GameObjectEvent thisEvent = null;

        if (instance.eventDictionary.TryGetValue(eventName, out thisEvent))
        {
            thisEvent.RemoveListener(listener);
        }
    }
Example #3
0
 private void OnDisable()
 {
     trapIconPressed.RemoveListener(OnTrapIconPressed);
     trapIconRelesed.RemoveListener(OnTrapIconRelesed);
 }
Example #4
0
 public void RemovePostRunEvent(UnityAction <GameObject> hAction)
 {
     m_hPostRunEvent?.RemoveListener(hAction);
 }
Example #5
0
 private void OnDisable()
 {
     wallEvent.RemoveListener(EnqueueWall);
 }