Beispiel #1
0
 public void OnClickLoginToPlayFab()
 {
     if (string.IsNullOrEmpty(debugCustomId))
     {
         string customId = PlayerPrefsManager.GetPlayerCustomId();
         if (string.IsNullOrEmpty(customId))
         {
             ShowPanel(infoPanels[0]);
         }
         else
         {
             deviceLogin.LoginToPlayFab(customId);
         }
     }
     else
     {
         deviceLogin.LoginToPlayFab(debugCustomId);
     }
 }
Beispiel #2
0
 public void RetryAction(DeviceLogin deviceLogin)
 {
     Hide();
     if (action == "Login")
     {
         deviceLogin.LoginToPlayFab(PlayerPrefsManager.GetPlayerCustomId());
     }
     else if (action == "Create")
     {
         deviceLogin.CreatePlayFabAccount(PlayerPrefsManager.GetPlayerCustomId(), playerName);
     }
     else if (action == "Transfer")
     {
         deviceLogin.TransferPlayFabAccount(transferPasscode);
     }
 }