Gamebase SDK for Unity  1.0.0
Toast Gamebase Platform

◆ Initialize() [2/2]

static void Initialize ( GamebaseRequest.GamebaseConfiguration  configuration,
GamebaseCallback.GamebaseDelegate< GamebaseResponse.Launching.LaunchingInfo >  callback 
)
static

This method initialize Gamebase with GamebaseConfiguration instance.

InitializeCompletion return launching datas when Gamebase has initialized and has completed getting launching informations from server. You must call this method first, after the app has launched.

Parameters
configurationAppID, AppVersion, ZoneType
callbackCallback. delegate(GamebaseResponse.Launching.LaunchingInfo data, GamebaseError error)

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

public void Initialize()
{
var configuration = new GamebaseRequest.GamebaseConfiguration();
configuration.appID = GamebaseUnitySDK.AppID;
configuration.appVersion = GamebaseUnitySDK.AppVersion;
configuration.zoneType = "REAL";
Gamebase.Initialize(configuration, (launchingInfo, gamebaseError) =>
{
if (gamebaseError == null)
{
Debug.Log("Initialize succeeded");
}
else
{
Debug.Log("Initialize failed");
}
});
}