public virtual void RemoveUiEventListener(string key) { if (UiEventsMap.ContainsKey(key)) { UiEventsMap.Remove(key); } }
public void RemoveUiEventInterest(string key) { if (UiEventsMap.ContainsKey(key)) { UiEventsMap.Remove(key); } MyView.RemoveUiEventListener(key); }
public void RemoveUiEventInterest(string key, Action <object> action) { if (!UiEventsMap.ContainsKey(key)) { return; } UiEventsMap[key] -= action; if (UiEventsMap[key].GetInvocationList().Length == 0) { RemoveUiEventInterest(key); } }
public void AddUiEventInterest(string key, Action <object> action) { if (UiEventsMap.ContainsKey(key)) { UiEventsMap[key] += action; } else { UiEventsMap.Add(key, action); MyView.AddUiEventListener(key, this); } }