void OnHandMotion(object sender, HandMotionDetectedEventArgs args)
    {
        int deltaScore = 0;

        switch (args.motion)
        {
        case HandMotion.LEFT_HAND_WAVE_OUT:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.LeftTarget);
            break;

        case HandMotion.RIGHT_HAND_WAVE_OUT:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.RightTarget);
            break;

        case HandMotion.TWO_HAND_RISE:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.TopTarget);
            break;

        case HandMotion.RIGHT_HAND_RISE:
            if (isFinished)
            {
                Application.LoadLevel("MainMenu");
            }
            break;
        }

        if (gameMode == GameMode.LimitedTime)
        {
            this.score += deltaScore;
            UpdateScoreText();
        }
    }
	public void onHandMotionDetected(object sender, HandMotionDetectedEventArgs e)
{
		if(birdsfactory.destroyDirdByHandMotion (e.motion) == true)
		{
			guiManager.addScore(1);
			audioManager.playAudioWeep();
		}
	}
 protected virtual void OnHandMotionDetected(HandMotion motion)
 {
     if (handMotionDetected != null)
     {
         HandMotionDetectedEventArgs e = new HandMotionDetectedEventArgs();
         e.motion = motion;
         handMotionDetected(this, e);
     }
 }
 protected virtual void OnHandMotionDetected(HandMotion motion)
 {
     if (handMotionDetected != null)
     {
         HandMotionDetectedEventArgs e = new HandMotionDetectedEventArgs();
         e.motion = motion;
         handMotionDetected(this, e);
     }
 }
 void SelectMenu(object sender, HandMotionDetectedEventArgs args)
 {
     if (args.motion == HandMotion.LEFT_HAND_WAVE_OUT) {
         //TODO: Change the code here, implement choosing mene function
         // simulate mouse click
         MouseEvent(RightHandTracking.MouseEventFlags.LeftUp | RightHandTracking.MouseEventFlags.LeftDown);
         Debug.Log("SELECT THIS MENU");
     }
 }
 void SelectMenu(object sender, HandMotionDetectedEventArgs args)
 {
     if (args.motion == HandMotion.LEFT_HAND_WAVE_OUT)
     {
         //TODO: Change the code here, implement choosing mene function
         // simulate mouse click
         MouseEvent(RightHandTracking.MouseEventFlags.LeftUp | RightHandTracking.MouseEventFlags.LeftDown);
         Debug.Log("SELECT THIS MENU");
     }
 }
    void OnHandMotion(object sender, HandMotionDetectedEventArgs args)
    {
        int deltaScore = 0;

        switch(args.motion) {
        case HandMotion.LEFT_HAND_WAVE_OUT:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.LeftTarget);
            break;
        case HandMotion.RIGHT_HAND_WAVE_OUT:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.RightTarget);
            break;
        case HandMotion.TWO_HAND_RISE:
            deltaScore = TargetsFactory.ReleaseAllTargetsByType(TargetType.TopTarget);
            break;
        case HandMotion.RIGHT_HAND_RISE:
            if(isFinished) {
                Application.LoadLevel("MainMenu");
            }
            break;
        }

        if (gameMode == GameMode.LimitedTime) {
            this.score += deltaScore;
            UpdateScoreText();
        }
    }