Exemplo n.º 1
0
    /// <summary>
    /// Shows the dialog message.
    /// </summary>
    public void ShowDialogMessage(string message, string title = "SPIDER SOLITAIRE", string accept = "YES", string cancel = "NO", System.Action OnYES = null, System.Action OnNO = null, System.Action OnClose = null)
    {
        // TODO: Get the dialog.
        var dialog = GetTheDialog <DialogMessage> (prefabDialogMessage, dialogMessage);

        // TODO: Check if this null.
        if (object.ReferenceEquals(dialog, null))
        {
            // TODO: Break the functions.
            return;
        }

        // TODO: set the default dialog.
        dialogMessage = dialog;

        // TODO: Set the default value.
        dialogMessage.Init(message, title, accept, cancel, OnYES, OnNO, OnClose);

        // TODO: Show the dialog.
        DoShow(dialog);
    }