예제 #1
0
    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());
        }
    }
예제 #2
0
 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;
 }