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