protected override void OnDestroy() { if (onPointerDown != null) { onPointerDown.RemoveAllListeners(); } if (onPointerUp != null) { onPointerUp.RemoveAllListeners(); } base.OnDestroy(); }
public void Dispose() { Event.RemoveAllListeners(); }