Gamebase SDK for Unity  2.1.0
Toast Gamebase Platform

◆ Initialize() [1/2]

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

This function initialize the Gamebase SDK with inspector settings.

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

Since
Added 1.4.0.
Parameters
callbackThe callback provided will return a LaunchingInfo object that contains the infomations of Gamebase.

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));
}
});
}