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;
}
}
}