Пример #1
0
 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);
        }
    }
Пример #3
0
 private void OnDisable()
 {
     trapIconPressed.RemoveListener(OnTrapIconPressed);
     trapIconRelesed.RemoveListener(OnTrapIconRelesed);
 }
Пример #4
0
 public void RemovePostRunEvent(UnityAction <GameObject> hAction)
 {
     m_hPostRunEvent?.RemoveListener(hAction);
 }
Пример #5
0
 private void OnDisable()
 {
     wallEvent.RemoveListener(EnqueueWall);
 }