Gamebase SDK for Unity  1.5.0
Toast Gamebase Platform

◆ Initialize()

static void Initialize ( GamebaseCallback.GamebaseDelegate< GamebaseResponse.Launching.LaunchingInfo >  callback)
static

This function initializes the Gamebase SDK.

If this function is not called, the Gamebase SDK function will not work.

Since
Added 1.4.0.
Parameters
callbackInitialization result callback, returns the launching information as a result of initialization

Example Usage :

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