GetUserPausePoseProgress() private méthode

private GetUserPausePoseProgress ( uint userID ) : float
userID uint
Résultat float
Exemple #1
0
    void OnGUI()
    {
        if (calibratedUsers.Count < soldiers.Length)
        {
            GUI.DrawTexture(usersMapRect, usersLblTex);
            caption.text = String.Format("Waiting for {0} more users to calibrate...", soldiers.Length - calibratedUsers.Count);
        }
        else
        {
            caption.text = "All users calibrated";
        }

        foreach (uint userId in allUsers)
        {
            float progress = NiteWrapper.GetUserPausePoseProgress(userId);
            if (NiteWrapper.GetUserPausePoseProgress(userId) > 0.0)
            {
                caption.text = String.Format("[User {0}] Pause pose progress: {1}", userId, progress);
                break;
            }
        }
    }