SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4.  
  5. public class Name : MonoBehaviour
  6. {
  7.     public InputField heroNameInputField;
  8.     public string hName;
  9.     void Start()
  10.     {
  11.         heroNameInputField.onEndEdit.AddListener(SetHeroName);
  12.     }
  13.  
  14.     void SetHeroName(string s)
  15.     {
  16.         hName=s;
  17.         Debug.Log("ustawiono nazwe "+s);
  18.     }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top