Exemplo n.º 1
0
    public WGTipAlertView showTipView(string msg)
    {
        WGTipAlertView tp = WGTipAlertView.CreateTipView();

        tp.freshUI(msg);
        SDK.AddChild(tp.gameObject, goTopView);
        tp.showView();
        return(tp);
    }
Exemplo n.º 2
0
//	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);
    }
Exemplo n.º 3
0
    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);
    }