private static void SwipeFlick_SubsMethod(E_DIRECTION type, GestureDelegate <GestureInfoSwipe> method, bool is4Axis) { GestureFlickSwipe._instance.SetType(type, is4Axis); GestureFlickSwipe._instance.RemoveDelegate(method); if (!GestureFlickSwipe._instance.HasDelegates()) { SimpleGesture.Instance.oneFingerGestures.Remove(GestureFlickSwipe._instance); GestureFlickSwipe._instance = null; } }
private static void SwipeQuick_SubsMethod(E_DIRECTION type, GestureDelegate method) { Gesture9AxisSwipe._instance.SetType(type); Gesture9AxisSwipe._instance.RemoveDelegate(method); if (!Gesture9AxisSwipe._instance.HasDelegates()) { SimpleGesture.Instance.oneFingerGestures.Remove(Gesture9AxisSwipe._instance); Gesture9AxisSwipe._instance = null; } }
private static void SwipeFlick_AddMethod(E_DIRECTION type, GestureDelegate <GestureInfoSwipe> method, bool is4Axis) { if (GestureFlickSwipe._instance == null) { GestureFlickSwipe gestureSwipe = new GestureFlickSwipe(); SimpleGesture.Instance.oneFingerGestures.Add(gestureSwipe); } GestureFlickSwipe._instance.SetType(type, is4Axis); GestureFlickSwipe._instance.AddDelegate(method); }
private static void Swipe9Axis_AddMethod(E_DIRECTION type, GestureDelegate method) { if (Gesture9AxisSwipe._instance == null) { Gesture9AxisSwipe gestureSwipe = new Gesture9AxisSwipe(); SimpleGesture.Instance.oneFingerGestures.Add(gestureSwipe); } Gesture9AxisSwipe._instance.SetType(type); Gesture9AxisSwipe._instance.AddDelegate(method); }