Guest User

Untitled

a guest
Aug 23rd, 2019
75
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