Advertisement
Guest User

Untitled

a guest
Feb 18th, 2017
1,393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.41 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4.  
  5. public class UIController : MonoBehaviour {
  6.  
  7.     public Text showinputText;
  8.     public string inputText;
  9.    
  10.     public void SetPlayerName(string value) {
  11.         inputText = value;
  12.         Debug.Log ("inputText variable now holds: "+inputText);
  13.  
  14.     }
  15.    public void OnGUI()
  16.     {
  17.         GUI.Label(new Rect(20, 20, 500, 500), "> " + inputText);
  18.  
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement