// Jimmy Vegas Unity Tutorial // This Script will produce buttons on your menu var Questupdate : GameObject; var PlayerText : GameObject; var TextDisplay : GameObject; function Start () { transform.position = Vector3(0, -1000, 0); QuestUpdate.GetComponent.().text = "Active Quest: Exit The Wood"; yield WaitForSeconds (3); TextDisplay.SetActive(true); PlayerText.GetComponent.().text = "Where am I?"; yield WaitForSeconds (1); PlayerText.GetComponent.().text = "I need to find a way out of this wood."; yield WaitForSeconds (2); PlayerText.GetComponent.().text = ""; TextDisplay.SetActive(false); this.gameObject.SetActive(false); }