public WGTipAlertView showTipView(string msg) { WGTipAlertView tp = WGTipAlertView.CreateTipView(); tp.freshUI(msg); SDK.AddChild(tp.gameObject, goTopView); tp.showView(); return(tp); }
// public WGTipAlertView showArchivementTipView(int msgID){ // return showArchivementTipView (mString (msgID)); // } public WGTipAlertView showArchivementTipView(string msg, string icon) { WGTipAlertView tp = WGTipAlertView.CreateArchivementView(); tp.Icon.GetComponent <UISprite>().spriteName = icon; tp.freshUI(msg); SDK.AddChild(tp.gameObject, goTopView); tp.showView(); return(tp); }
public static WGTipAlertView CreateArchivementView() { Object obj = Resources.Load("pbWGArchivementTipAlertView"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; WGTipAlertView tp = go.GetComponent <WGTipAlertView>(); return(tp); } return(null); }