Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5.  
  6. public class TextControler : MonoBehaviour {
  7.  
  8.  
  9. public Text text;
  10. void Start () {
  11.  
  12. text.text = "Jestes w celi i chcesz uciec. Na lozku dostrzegasz ponieszczone kartki papiieru oraz lustro na scianie\n"
  13. + "poza tym, dostrzegasz zamkniete drzwi ktore prowadza na zewnatrz\n"
  14. + "Nacisnij K aby podejsc do kartek przy lozku, Z by podejsc do zamka przy drzwiach, L by podejsc do Lustra ktore wisi na scianie\n"
  15. + "\n";
  16.  
  17.  
  18.  
  19.  
  20. }
  21.  
  22.  
  23. // Update is called once per frame
  24. void Update () {
  25. if (Input.GetKeyDown(KeyCode.Return))
  26. text.text = "Hello World";
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement