///////////////////////////////////////////////////////////// /// public static public static MessagePop ShowPop(string msg, string leftBtnText = null, DelOnClickButton leftBtnCallback = null, string rightBtnText = null, DelOnClickButton rightBtnCallback = null, bool canClose = true) { MessagePop popup = UEPopup.GetInstantiateComponent <MessagePop>("Prefabs/UI/Popups/MessagePop"); popup.Show(msg, leftBtnText, leftBtnCallback, rightBtnText, rightBtnCallback, canClose); return(popup); }
public static void ShowPopup() { if (instance == null) { instance = UEPopup.GetInstantiateComponent <LoadingPop>("Prefabs/UI/Popups/LoadingPop"); instance.Show(); } }