Gamebase SDK for Unity  1.1.4
Toast Gamebase Platform

◆ ShowAlertDialog()

static void ShowAlertDialog ( string  title,
string  message,
string  okTitle,
GamebaseCallback.VoidDelegate  okCallback,
string  cancelTitle,
GamebaseCallback.VoidDelegate  cancelCallback 
)
static

Show Alert.

Parameters
titleThe title to be shown in the alert.
messageThe message to be shown in the alert.
okTitleThe ok button title to be shown in the alert.
okCallbackThe okCallback to be executed after click ok button.
cancelTitleThe cancel button title to be shown in the alert.
cancelCallbackThe cancelCallback to be executed after cancel ok button.

This sample shows how to call theGamebase.Util.ShowAlertDialog method.

public void ShowWebViewFile()
{
Gamebase.Util.ShowAlertDialog(
"Title",
"Message",
"OK Button",
() => {
Debug.Log("OKButtonClick");
},
"Cancel Button",
() => {
Debug.Log("CancelButtonClick");
});
}