/// <summary> /// Makes system start listening for a full body gesture /// </summary> public void StartListeningForWholeBodyGesture() { //Play sounds! systemSounds.PlayGameStartSound(); systemSounds.PlayGameBackgroundNoise(); systemSounds.PlayGameMusic(); //set current keyPoint to 0 currentKeyPoint = 0; //make carl assume the keypoint pose indicatorModelKeyPoint = 0; StartAnimatingIndicatorModel(); //make listening=true listeningForWholeBodyGesture = true; isCheckingForExercise = true; exerciseScore = 0; //reset score to 0 //make timer count down countdownTimer.StartCountdown(); }
/// <summary> /// This is used to demonstrate each exercise, one pose at a time. /// </summary> public void DemoRecording() { //reset the current keyframe demoCurrentKeyFrame = 0; //check if the playlist is null if (playbackList != null) { //set flag to playing isPlaying = true; //StopTracking(); //make model animate indicatorModelKeyPoint = 0; StartAnimatingIndicatorModel(); //start the demotimer demoCountdownTimer.StartCountdown(); } else { Debug.Log("No list loaded, cannot demo"); } }