Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement