void ShowMessageBox(string Contents, string title = "提示", string cancelText = "关闭", string OKText = "", MessagePanel.cancelCB cb1 = null, MessagePanel.okCB cb = null) { if (messageBoxOBJ != null) { Destroy(messageBoxOBJ); } messageBoxOBJ = LoadPanel("Prefabs/MessagePanel"); messageBoxOBJ.GetComponent <MessagePanel>()._showMessagePanel(Contents, title, cancelText, OKText, cb1, cb); }
public void showMessagePanel(string Contents, string title = "提示", string cancelText = "关闭", string OKText = "", MessagePanel.cancelCB cb1 = null, MessagePanel.okCB cb = null) { ShowMessageBox(Contents, title, cancelText, OKText, cb1, cb); }