Exemplo n.º 1
0
    public static void Show(string tips, Action ok)
    {
        GameObject goTips = GameObject.Find("Canvas/UpdateNoticePanel");

        if (goTips == null)
        {
            goTips = GameObject.Instantiate(Resources.Load <GameObject>("UI/Update/UpdateNoticePanel")) as GameObject;
            Util.BindParent(GameObject.Find("Canvas").transform, goTips.transform);
        }
        UpdateNoticePanel panel = Util.GetOrAddComponent <UpdateNoticePanel>(goTips);

        panel.Init(tips, ok);
    }