Ejemplo n.º 1
0
    // 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>();
            }
        }
    }
Ejemplo n.º 2
0
 public TextInputWindow(string question)
 {
     InitializeComponent();
     TextBlock_Message.Text = question;
     TextBox_Text.Focus();
 }
Ejemplo n.º 3
0
 public void EnterText(string text)
 {
     TextBox_Text.Clear();
     TextBox_Text.User.TypeText(text, 50);
 }