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); } }
private void OnDisable() { trapIconPressed.RemoveListener(OnTrapIconPressed); trapIconRelesed.RemoveListener(OnTrapIconRelesed); }
public void RemovePostRunEvent(UnityAction <GameObject> hAction) { m_hPostRunEvent?.RemoveListener(hAction); }
private void OnDisable() { wallEvent.RemoveListener(EnqueueWall); }