Ejemplo n.º 1
0
    public void InitWith(PrompType type, string title, string content, Callback <bool> callback, string confirm = "确定", string cancel = "取消")
    {
        btnCancel.gameObject.SetActive(type == PrompType.CancelAndConfirm);
        textTitle.text   = title;
        textContent.text = content;

        this.callback = callback;

        textCancel.text  = cancel;
        textConfirm.text = confirm;
    }
Ejemplo n.º 2
0
    public static void ShowPromp(PrompType type, string title, string content, Callback <bool> callback, string confirm = "确定", string cancel = "取消")
    {
        UIPrompDialog uIPrompDialog = UIManager.Instance.OpenUI <UIPrompDialog>();

        uIPrompDialog.InitWith(type, title, content, callback);
    }