public override void OnSwipe(GVRSwipeDirection dir) { if (dir == GVRSwipeDirection.down) { if (selectedObject != null) { if (activeNode != null) { CommitNode(); } ActivateNode(selectedObject); } else { CreateNode(); } } else if (dir == GVRSwipeDirection.up) { GVRInput.DebugMessage("swipe up"); CommitNode(); } else if (dir == GVRSwipeDirection.right) { if (activeMove != null) { return; } // modeNum++; // UpdateMode (); shouldDraw = !shouldDraw; } else if (dir == GVRSwipeDirection.left) { // modeNum--; // UpdateMode (); } base.OnSwipe(dir); }
public virtual void OnSwipe(GVRSwipeDirection dir) { }