static public void ShowOKPopup(string title, string msg, System.Action okCallback) { if (null == uiPopup) { Init(); } GameObject go = uiPopup.CreateOKPopupSlot(); UIOKPopupSlot okPopupSlot = go.GetComponent <UIOKPopupSlot>(); okPopupSlot.onOK += okCallback; okPopupSlot.SetMsg(title, msg); go.SetActive(true); }