예제 #1
0
    void Start()
    {
        LoginWithCustomIDRequest request = new LoginWithCustomIDRequest()
        {
            TitleId       = PlayFabSettings.TitleId,
            CreateAccount = true,
            CustomId      = GUIDUtility.getUniqueID()
        };

        PlayFabClientAPI.LoginWithCustomID(request, OnPlayFabLoginSuccess, OnLoginError);
    }
예제 #2
0
    public void LoginRemoteUser()
    {
        Debug.Log("[ClientStartUp].LoginRemoteUser");

        //We need to login a user to get at PlayFab API's.
        LoginWithCustomIDRequest request = new LoginWithCustomIDRequest()
        {
            TitleId       = PlayFabSettings.TitleId,
            CreateAccount = true,
            CustomId      = GUIDUtility.getUniqueID()
        };

        PlayFabClientAPI.LoginWithCustomID(request, OnPlayFabLoginSuccess, OnLoginError);
    }
예제 #3
0
    private void LogInClient()
    {
        var localId = GUIDUtility.getUniqueID();

        var logIdRequest =
            new LoginWithCustomIDRequest()
        {
            TitleId       = PlayFabSettings.TitleId,
            CreateAccount = true,
            CustomId      = localId
        };

        PlayFabClientAPI
        .LoginWithCustomID(logIdRequest,
                           this.HandleLogInSuccess,
                           this.HandleLogInError);
    }