public static void UnRegisterClickEvent(GameObject go, TouchEventDistrubtionCall call) { if (go != null && _clickListeners.ContainsKey(go)) { _clickListeners[go] -= call; if (_clickListeners[go] == null || _clickListeners[go].GetInvocationList().Length == 0) { _clickListeners.Remove(go); } } }
public static bool RegisterClickEventAtHead(GameObject go, TouchEventDistrubtionCall call) { if (go != null && _clickListeners.ContainsKey(go)) { _clickListeners[go] = call + _clickListeners[go]; return(true); } else { return(false); } }
public static void RegisterClickEvent(GameObject go, TouchEventDistrubtionCall call) { if (go != null) { if (!_clickListeners.ContainsKey(go)) { _clickListeners.Add(go, call); } else { _clickListeners[go] += call; } } }
public static void UnRegisterDownEvent(GameObject go, TouchEventDistrubtionCall call) { if (go == null) { return; } if (_touchDownListeners.ContainsKey(go)) { _touchDownListeners[go] -= call; if (_touchDownListeners[go] == null || _touchDownListeners[go].GetInvocationList().Length == 0) { _touchDownListeners.Remove(go); } } }