static public void ShowYesNoPopup(string title, string msg, System.Action <string> yesNoCallback) { if (null == uiPopup) { Init(); } GameObject go = uiPopup.CreateYesNoPopupSlot(); UIYesNoPopupSlot yesNoPopupSlot = go.GetComponent <UIYesNoPopupSlot>(); yesNoPopupSlot.onYesNo += yesNoCallback; yesNoPopupSlot.SetMsg(title, msg); go.SetActive(true); }