コード例 #1
0
 void SetUpAlertButtons(ref Alert alert, AlertButton positiveButton, AlertButton negativeButton = default,
                        AlertButton neutralButton = default)
 {
     alert.SetPositiveButton(positiveButton.text, positiveButton.action);
     if (negativeButton.text != null)
     {
         alert.SetNegativeButton(negativeButton.text, negativeButton.action);
     }
     if (neutralButton.text != null)
     {
         alert.SetNeutralButton(neutralButton.text, neutralButton.action);
     }
 }