Пример #1
0
 void OnGUI()
 {
     if (!CardboardGUI.OKToDraw(this))
     {
         return;
     }
     GameObject.Find("InformationText").GetComponent <GUIText>().text = displayText;
 }
Пример #2
0
 void OnGUI()
 {
     if (!CardboardGUI.OKToDraw(this))
     {
         return;
     }
     if (GUI.Button(new Rect(50, 50, 200, 50), "Reset"))
     {
         transform.localPosition = startingPosition;
     }
 }