UserInputScript.cs 1004 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. public class UserInputScript : MonoBehaviour
  4. {
  5. public Text userName;
  6. public Button Submit;
  7. [SerializeField]
  8. private GameObject userGender;
  9. public GameObject ErrorText;
  10. private void OnEnable()
  11. {
  12. CheckDisplayName();
  13. }
  14. private void CheckDisplayName()
  15. {
  16. /* if (!string.IsNullOrEmpty(AuthenticationGlobalData.profiledata.DisplayName))
  17. {
  18. Submit.interactable = false;
  19. gameObject.SetActive(false);
  20. userGender.SetActive(true);
  21. }*/
  22. }
  23. public void SetUserName()
  24. {
  25. /* if (!string.IsNullOrEmpty(userName.text))
  26. {
  27. Submit.interactable = false;
  28. gameObject.SetActive(false);
  29. FirebaseAuthenticationManager.Instance.GetAuth().ChangeDisplayName(userName.text);
  30. AuthenticationGlobalData.profiledata.DisplayName = userName.text;
  31. userGender.SetActive(true);
  32. } */
  33. }
  34. }