void RaycastByMouseOrTobii()
        {
            data.position = TobbiManager.Instance.GetEyePoint;

            results = new List <RaycastResult>();

            // position IsNaN 확인.
            if (IsNaN(data.position))
            {
                return;
            }

            raycaster.Raycast(data, results);

            foreach (RaycastResult result in results)
            {
                EyeTypingButton button = result.gameObject.GetComponent <EyeTypingButton>();
                if (button == null)
                {
                    continue;
                }

                // 활성화인 경우에만 타이머 갱신.
                if (button.gameObject.activeInHierarchy)
                {
                    button.UpdateTimer();
                }
            }
        }
Beispiel #2
0
 public virtual void OnGazeComplete()
 {
     if (otherButtonToDisable != null && otherButtonToDisable.Length > 0)
     {
         foreach (GameObject button in otherButtonToDisable)
         {
             EyeTypingButton eyeTyping = button.GetComponent <EyeTypingButton>();
             if (eyeTyping)
             {
                 eyeTyping.DisableEyeTypingButton();
             }
         }
     }
 }