Ejemplo n.º 1
0
 void Update()
 {
     if (!_readingHandGesture && (MLHands.Left.HandConfidence > 0.88f && MLHands.Left.KeyPose == MLHandKeyPose.L || MLHands.Right.HandConfidence > 0.88f && MLHands.Right.KeyPose == MLHandKeyPose.L))
     {
         _readingHandGesture = true;
         EnableMeshing();
         levelCreator.ClearLevel();
     }
     else if (!_readingHandGesture && MLHands.Left.HandConfidence > 0.88f && MLHands.Left.KeyPose == MLHandKeyPose.Ok || MLHands.Right.HandConfidence > 0.88f && MLHands.Right.KeyPose == MLHandKeyPose.Ok)
     {
         _readingHandGesture = true;
         DisableMeshing();
         levelCreator.CreateLevel();
     }
     else
     {
         _readingHandGesture = false;
     }
 }