void Start() { LoginWithCustomIDRequest request = new LoginWithCustomIDRequest() { TitleId = PlayFabSettings.TitleId, CreateAccount = true, CustomId = GUIDUtility.getUniqueID() }; PlayFabClientAPI.LoginWithCustomID(request, OnPlayFabLoginSuccess, OnLoginError); }
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); }
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); }