public static MobileDateTimePicker CreateTime(Action <DateTime> onChange = null, Action <DateTime> onClose = null)
        {
            MobileDateTimePicker dialog;

            dialog = new GameObject("MobileDateTimePicker").AddComponent <MobileDateTimePicker>();
            dialog.OnDateChanged  = onChange;
            dialog.OnPickerClosed = onClose;

            MobileNative.showTimePicker();
            return(dialog);
        }
        public static MobileDateTimePicker CreateDate(int year, int month, int day, Action <DateTime> onChange = null, Action <DateTime> onClose = null)
        {
            MobileDateTimePicker dialog;

            dialog = new GameObject("MobileDateTimePicker").AddComponent <MobileDateTimePicker>();
            dialog.OnDateChanged  = onChange;
            dialog.OnPickerClosed = onClose;

            MobileNative.showDatePicker(year, month, day);
            return(dialog);
        }
 public void init()
 {
     MobileNative.showInfoPopup(title, message, ok, okAction);
 }
 public void init()
 {
     MobileNative.showDialogConfirm(title, message, yes, no, yesAction, noAction);
 }
Beispiel #5
0
 public void init()
 {
     MobileNative.showDialogNeutral(title, message, accept, neutral, decline);
 }