예제 #1
0
    private void UpdateEyeTexts(Fove.Eye eye)
    {
        var isLeft    = eye == Fove.Eye.Left;
        var infoTexts = isLeft ? leftEyeInfoTexts : rightEyeInfoTexts;

        // eye closed or open
        infoTexts.stateText.text = getEyeStateString(eye);

        // Eye radius
        infoTexts.eyeText.text   = toMilliString(FoveManager.GetEyeballRadius(eye));
        infoTexts.irisText.text  = toMilliString(FoveManager.GetIrisRadius(eye));
        infoTexts.pupilText.text = toMilliString(FoveManager.GetPupilRadius(eye));

        var torsion     = FoveManager.GetEyeTorsion(eye);
        var torsionText = torsion.Failed ? torsion.error.ToString() : torsion.value.ToString("F2");

        infoTexts.torsionText.text = torsionText;
    }