Gamebase SDK for Unity  1.1.5
Toast Gamebase Platform

◆ Initialize() [1/2]

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

This method initialize Gamebase without GamebaseConfiguration instance.

callback 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
callbackCallback. delegate(GamebaseResponse.Launching.LaunchingInfo data, GamebaseError error)

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

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