public static void StopListening(string eventName, UnityAction <TaskableBase> listener) { if (instance == null) { return; } TileEvent thisEvent = null; if (instance.tileEventDictionary.TryGetValue(eventName, out thisEvent)) { thisEvent.RemoveListener(listener); } }
public void RemoveListener(UnityAction <TileType> listener) { tileEvent.RemoveListener(listener); }