예제 #1
0
    public void ShowConfirmDialog(string title, string msg, AlertMananger.Listener listener)
    {
        _listener = listener;

        text_title.text      = title;
        text_confirmMsg.text = msg;

        panel_confirmDialog.SetActive(true);
    }
예제 #2
0
 void onClick_confirm()
 {
     panel_confirmDialog.SetActive(false);
     if (_listener != null)
     {
         _listener.OnConfirm();
     }
     _listener = null;
 }