Gamebase SDK for Unity  2.2.2
Toast Gamebase Platform

◆ TransferAccountWithIdPLogin()

static void TransferAccountWithIdPLogin ( string  accountId,
string  accountPassword,
GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken >  callback 
)
static

Try to transfer account with transfer account id and password.

fdygkfrj rkxtmqslekIf this process is finished successfully, it proceeds login process and return AuthToken.

Since
Added 2.2.0.
Parameters
accountIdTransferAccount id received from old device.
accountPasswordTransferAccount password from old device.
callbackCallbacks the result of TransferAccountWithIdPLogin

Example Usage :

public void TransferAccountWithIdPLogin(string accountId, string accountPassword)
{
Gamebase.TransferAccountWithIdPLogin(accountId, accountPassword, (authToken, error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
// Transfering Account success.
// TODO: implements post login process
}
else
{
// Transfering Account failed.
}
});
}