Gamebase SDK for Unity  2.2.2
Toast Gamebase Platform

◆ Withdraw()

static void Withdraw ( GamebaseCallback.ErrorDelegate  callback)
static

Below shows an example of how a game user withdraws while logged-in.

When a user is successfully withdrawn, the user's data interfaced with a login IdP will be deleted. The user can log in with the IdP again, and a new user's data will be created. It means user's withdrawal from Gamebase, not from IdP account. After a successful withdrawal, a log-out from IdP will be tried.

Since
Added 1.4.0.
Parameters
callbackCallbacks the result of withdraw. (GamebaseError error)

Example Usage :

public void Withdraw()
{
Gamebase.Withdraw((error) =>
{
if (Gamebase.IsSuccess(error))
{
Debug.Log("Withdraw succeeded.");
}
else
{
Debug.Log(string.Format("Withdraw failed. error is {0}", error));
}
});
}