void Login()
    {
        Debug.Log("Login Path: " + this.loginPathToUse);
        switch (this.loginPathToUse)
        {
        case PlayFabLoginCalls.LoginPathways.pf_username:
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.LoginWithUsername(this.accountInfo.Username, this.password.text);
            break;

        case PlayFabLoginCalls.LoginPathways.pf_email:
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.LoginWithEmail(this.accountInfo.PrivateInfo.Email, this.password.text);
            break;

        case PlayFabLoginCalls.LoginPathways.deviceId:
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.TestDeviceIdHasAccount();
            break;

        case PlayFabLoginCalls.LoginPathways.facebook:
            this.isCounting = false;
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.StartFacebookLogin();
            break;

        case PlayFabLoginCalls.LoginPathways.gameCenter:
            this.isCounting = false;
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.StartGameCenterLogin();
            break;

        case PlayFabLoginCalls.LoginPathways.googlePlus:
            this.isCounting = false;
            PlayFabLoginCalls.RequestSpinner();
            PlayFabLoginCalls.StartGooglePlusLogin();
            break;

        case PlayFabLoginCalls.LoginPathways.steam:
            Debug.LogWarning("Steam Token Authentication not yet implemented.");
            break;
        }
    }
Esempio n. 2
0
 public void LogIn()
 {
     PlayFabLoginCalls.RequestSpinner();
     PlayFabLoginCalls.StartGameCenterLogin();
 }