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);
        }
    }
Exemple #2
0
 public void RemoveListener(UnityAction <TileType> listener)
 {
     tileEvent.RemoveListener(listener);
 }