Ejemplo n.º 1
0
    public static DialogViewController Show(string title, string message, DialogViewOptions options = null)
    {
        if (prefab == null)
        {
            prefab = Resources.Load("DialogView") as GameObject;
            if (prefab == null)
            {
                Debug.Log("can't load DialogView!! Check Resouces forlder.");
            }
        }

        GameObject           obj        = Instantiate(prefab) as GameObject;
        DialogViewController dialogView = obj.GetComponent <DialogViewController> ();

        dialogView.UpDateConttent(title, message, options);

        return(dialogView);
    }