public Notification(OnClickDialogYes dialogOk, string title) { this.type = EType.Dialog; this.title = title; this.callbackFuntionYesDialog = dialogOk; }
public static void ShowDialog(string title, OnClickDialogYes onYes) { if (Instance.listNotification.Count == 0) { Instance._StartDialog(title, onYes); } Instance.listNotification.Add(new Notification(onYes, title)); }
void _StartDialog(string title, OnClickDialogYes onYes) { Init(EType.Dialog); lbTitle.text = title; callbackFuntionYesDialog = onYes; }