public void ShowConfirmDialog(string title, string msg, AlertMananger.Listener listener) { _listener = listener; text_title.text = title; text_confirmMsg.text = msg; panel_confirmDialog.SetActive(true); }
void onClick_confirm() { panel_confirmDialog.SetActive(false); if (_listener != null) { _listener.OnConfirm(); } _listener = null; }