// Update is called once per frame void Update() { if (!player_lives) { player_lives = GameObject.FindObjectOfType <PlayerLives>(); } if (player_lives.player_seen_level()) { player.enabled = true; Destroy(GameObject.Find("player_dialog_img")); Destroy(gameObject); } if (Input.GetKeyDown(KeyCode.Return)) { if (!current.get_next_text()) { player.enabled = true; player_lives.mark_level_seen(); Destroy(GameObject.Find("player_dialog_img")); Destroy(gameObject); } else { current = GameObject.FindObjectOfType <TextBox_Text>(); } } }
public TextInputWindow(string question) { InitializeComponent(); TextBlock_Message.Text = question; TextBox_Text.Focus(); }
public void EnterText(string text) { TextBox_Text.Clear(); TextBox_Text.User.TypeText(text, 50); }