/// <summary> /// Shows the warning box. /// </summary> /// <param name="title">Title.</param> /// <param name="content">Content.</param> /// <param name="showBoxHandle">Show box handle.</param> public void ShowWarningBox(string title ,string content,ShowBoxResultEvent showBoxHandle=null) { if (Application.platform == RuntimePlatform.IPhonePlayer) { UtilsForIOS.ShowWarningBox(title,content,showBoxHandle); } else if (Application.platform == RuntimePlatform.Android) { #if UNITY_ANDROID UtilsForAndroid.Instance.ShowWarningBox(title,content,showBoxHandle); #endif } }
public static void ShowWarningBox(string strTitle ,string strText,ShowBoxResultEvent showBoxFinished=null) { _showBoxResultEvent = showBoxFinished; _showWarningBox(strTitle , strText); }
public void ShowWarningBox(string title ,string content,ShowBoxResultEvent showBoxFinished=null) { _showBoxResultEvent = showBoxFinished; string[] args={title,content}; mainActivity.Call("showWarningBox",args); }