protected void OnHandRaise(ZigJointId joint) { if (null != HandRaise) { HandRaise.Invoke(this, new HandRaiseEventArgs(joint)); } SendMessage("HandRaiseDetector_HandRaise", joint, SendMessageOptions.DontRequireReceiver); }
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); }
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; }
//On hand raise event void OnHandRaise(JointType joint, ulong id) { HandRaise.Invoke(this, new HandRaiseEventArg(joint, id)); }