Gamebase SDK for Unity  1.0.0
Toast Gamebase Platform

◆ AddMapping()

static void AddMapping ( string  providerName,
GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken >  callback 
)
static

If you have logged in with an IDP Type.

You can map with the other ID Providers, excluding Logged in IDP type. /// Mapping IDPs are just mapped to Gamebase UserID.ID Provider type what mapped to UserID only can be removed from mapped UserID. Warning : Logged in ID Provider type cannot be removed from UserID. Warning : You can call addMapping after logged in.

Parameters
providerNameProvider name
callbackCallback. delegate(GamebaseResponse.Auth.AuthToken data, GamebaseError error)

This sample shows how to call the Gamebase.AddMapping method.

public void AddMapping(string providerName)
{
Gamebase.AddMapping(providerName, (authToken, gamebaseError) =>
{
if (gamebaseError == null)
{
Debug.Log("AddMapping succeeded");
}
else
{
Debug.Log("AddMapping failed");
}
});
}