Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class TextControler : MonoBehaviour {
- public Text text;
- void Start () {
- text.text = "Jestes w celi i chcesz uciec. Na lozku dostrzegasz ponieszczone kartki papiieru oraz lustro na scianie\n"
- + "poza tym, dostrzegasz zamkniete drzwi ktore prowadza na zewnatrz\n"
- + "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"
- + "\n";
- }
- // Update is called once per frame
- void Update () {
- if (Input.GetKeyDown(KeyCode.Return))
- text.text = "Hello World";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement