Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create the dialog (Doesn't have to be Alert)
- DialogAlert dialog = DialogManager.CreateAlert();
- // Set the animator of the dialog (DialogAnimatorSlideFromRight is the other class you made)
- dialog.dialogAnimator = new DialogAnimatorSlideFromRight(1f);
- // Initialize the dialog (This sets its info up) (Arguments may vary if it's not DialogAlert)
- dialog.Initialize("Dialog Body", () => ToastManager.Show("OK button pressed"), "OK", "Dialog Title", null, null, null);
- // Show the dialog
- dialog.Show();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement