12345678910111213141516171819202122232425262728293031323334353637383940 |
- using UnityEngine;
- using UnityEngine.UI;
- public class UserInputScript : MonoBehaviour
- {
- public Text userName;
- public Button Submit;
- [SerializeField]
- private GameObject userGender;
- public GameObject ErrorText;
- private void OnEnable()
- {
- CheckDisplayName();
- }
- private void CheckDisplayName()
- {
- /* if (!string.IsNullOrEmpty(AuthenticationGlobalData.profiledata.DisplayName))
- {
- Submit.interactable = false;
- gameObject.SetActive(false);
- userGender.SetActive(true);
- }*/
- }
- public void SetUserName()
- {
- /* if (!string.IsNullOrEmpty(userName.text))
- {
- Submit.interactable = false;
- gameObject.SetActive(false);
- FirebaseAuthenticationManager.Instance.GetAuth().ChangeDisplayName(userName.text);
- AuthenticationGlobalData.profiledata.DisplayName = userName.text;
- userGender.SetActive(true);
- } */
- }
- }
|