Exemple #1
0
 public void ChangeIdentityProvider(Dropdown dropdown)
 {
     if (dropdown == null)
     {
         Debug.LogWarning("Unity missing connection to dropdown element");
         return;
     }
     identityProvider = (AuthenticationProvider)dropdown.value;
     if (identityProvider.Equals(AuthenticationProvider.Twitter) || identityProvider.Equals(AuthenticationProvider.Google))
     {
         inputUserSecret.placeholder.GetComponent <Text>().text =
             identityProvider.Equals(AuthenticationProvider.Twitter) ? "Enter access token secret..." : "Enter id token...";
         inputUserSecret.gameObject.SetActive(true);
     }
     else
     {
         inputUserSecret.gameObject.SetActive(false);
     }
 }