Exemple #1
0
    private void showTwoButtonDialog(string message, string btnOne, string btnTwo)
    {
        if (dialogMessageController == null)
        {
            dialogMessageController = dialogMsg.GetComponentInChildren <DialogMessageController>();
        }

        dialogMessageController.setDialogType(DialogMessageController.DIALOG_TYPE.DIALOG_TYPE_TWOBUTTON);

        dialogMessageController.OnButtonOneClickDelegate = OnButtonOneClickDelegate;
        dialogMessageController.OnButtonTwoClickDelegate = OnButtonTwoClickDelegate;

        dialogMessageController.setMessage(message);
        dialogMessageController.setButtonOneText(btnOne);
        dialogMessageController.setButtonTwoText(btnTwo);

        dialogMessageController.Show();
    }