public void OpenMessageBox(string message, eUIMessageBoxButtonType type, UIMessageBox.ButtonCB onButtonCB, params object[] param) { if (uiMessageBox != null) { uiMessageBox.OpenFrame(message, type, onButtonCB, param); } }
void LateUpdate() { #if UNITY_ANDROID if (Input.GetKeyUp(KeyCode.Escape)) { UIMessageBox.ButtonCB quitCB = new UIMessageBox.ButtonCB(SupportUtil.ApplicationQuit); OpenMessageBox(SupportString.GetString(3012), eUIMessageBoxButtonType.Type_Ok_Cancel, quitCB); } #endif }
void LateUpdate() { #if UNITY_ANDROID if (Input.GetKeyUp(KeyCode.Escape)) { UIMessageBox.ButtonCB quitCB = new UIMessageBox.ButtonCB(OnAndroidBack); OpenMessageBox(SupportString.GetString(100001), eUIMessageBoxButtonType.Type_Ok_Cancel, quitCB); } #endif Touch(); }