Beispiel #1
0
 /// Called when the user stops looking on the GameObject, after OnGazeEnter
 /// was already called.
 public void OnGazeExit()
 {
     SetGazedAt(false);
     if (gameObject.name.Equals("ButtonStartRec"))
     {
         Transform        btnTransform     = gameObject.transform.Find("ApiButtonText");
         LocalizationText localizationText = btnTransform.gameObject.GetComponent <LocalizationText>();
         localizationText.UpdateKey("voice_say_content_2");
     }
 }