public void PopupMessage(string title, string msg, BUTTON_KIND kind, Action <bool> yesAction = null, Action <bool> noAction = null, Action <bool> okAction = null) { _messageQueue.Enqueue(new MESSAGE_POPUP_INFO(title, msg, kind, yesAction, noAction, okAction)); if (_messageQueue.Count == 1) { CoroutineManager.instance.StartCoroutine(MessagePopupProc()); } }
public MESSAGE_POPUP_INFO(string title, string msg, BUTTON_KIND kind, Action <bool> yes, Action <bool> no, Action <bool> ok) { _title = title; _msg = msg; _kind = kind; _yesAction = yes; _noAction = no; _okAction = ok; }