예제 #1
0
    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);
    }
예제 #2
0
 public virtual void OnSwipe(GVRSwipeDirection dir)
 {
 }