Exemplo n.º 1
0
 protected void OnHandRaise(ZigJointId joint)
 {
     if (null != HandRaise)
     {
         HandRaise.Invoke(this, new HandRaiseEventArgs(joint));
     }
     SendMessage("HandRaiseDetector_HandRaise", joint, SendMessageOptions.DontRequireReceiver);
 }
Exemplo n.º 2
0
    private IGestureAction CreateGestureAction(string name)
    {
        IGestureAction rv = null;

        if (sectionName == "demo")
        {
            if (name == "stand")
            {
                rv = new MoveCart(move);
            }
            if (name == "sit")
            {
                rv = new MoveCart(move);
            }
            if (name == "run")
            {
                rv = new RunMovement(move);
            }
            if (name == "swipeLeft")
            {
                rv = new MoveTrackLeft(move);
            }
            if (name == "swipeRight")
            {
                rv = new MoveTrackRight(move);
            }
            if (name == "raiseHands")
            {
                rv = new HandRaise();
            }
        }
        if (sectionName == "tutorial")
        {
            if (name == "standTutorial")
            {
                rv = new StandTutorial(tutor);
            }
            if (name == "sitTutorial")
            {
                rv = new SitTutorial(tutor);
            }
            if (name == "continueTutorial")
            {
                rv = new ContinueTutorial(tutor);
            }
            if (name == "")
            {
                rv = new SittingRunTutorial(tutor);
            }
        }

        return(rv);
    }
Exemplo n.º 3
0
    private IGestureAction CreateGestureAction(string name)
    {
        IGestureAction rv = null;

           if (sectionName == "demo")
           {
           if (name == "stand")
           {
               rv = new MoveCart(move);
           }
           if (name == "sit")
           {
               rv = new MoveCart(move);
           }
           if (name == "run")
           {
               rv = new RunMovement(move);
           }
           if (name == "swipeLeft")
           {
               rv = new MoveTrackLeft(move);
           }
           if (name == "swipeRight")
           {
               rv = new MoveTrackRight(move);
           }
           if (name == "raiseHands")
           {
               rv = new HandRaise();
           }
           }
           if (sectionName == "tutorial")
           {
            if (name == "standTutorial")
            {
                rv = new StandTutorial(tutor);
            }
            if (name == "sitTutorial")
            {
                rv = new SitTutorial(tutor);
            }
            if (name == "continueTutorial")
            {
                rv = new ContinueTutorial(tutor);
            }
            if (name == "")
            {
                rv = new SittingRunTutorial(tutor);
            }

           }

        return rv;
    }
Exemplo n.º 4
0
 //On hand raise event
 void OnHandRaise(JointType joint, ulong id)
 {
     HandRaise.Invoke(this, new HandRaiseEventArg(joint, id));
 }