Example #1
0
 /// <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
     }
 }
Example #2
0
 public static void ShowWarningBox(string strTitle ,string strText,ShowBoxResultEvent showBoxFinished=null)
 {
     _showBoxResultEvent = showBoxFinished;
     _showWarningBox(strTitle , strText);
 }
Example #3
0
        public void ShowWarningBox(string title ,string content,ShowBoxResultEvent showBoxFinished=null)
        {
            _showBoxResultEvent = showBoxFinished;

            string[] args={title,content};
            mainActivity.Call("showWarningBox",args);
        }