Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class UIController : MonoBehaviour {
- public Text showinputText;
- public string inputText;
- public void SetPlayerName(string value) {
- inputText = value;
- Debug.Log ("inputText variable now holds: "+inputText);
- }
- public void OnGUI()
- {
- GUI.Label(new Rect(20, 20, 500, 500), "> " + inputText);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement