예제 #1
0
    // Draw the Histogram Map on the GUI.
    void OnGUI()
    {
        if (OpenNIInitialized)
        {
            if (!AllPlayersCalibrated || DisplayUserMap)
            {
                GUI.DrawTexture(usersMapRect, usersLblTex);
            }

            // Find out if any of the currently seen users are trying to calibrate.
            foreach (uint userId in allUsers)
            {
                float progress = KinectWrapper.GetUserPausePoseProgress(userId);

                if (progress > 0.0)
                {
                    break;
                }
            }
        }
    }