void OnOK() { this.gameObject.SetActive(false); if (popupRef != null) { popupRef.OnOk(); popupRef = null; } }
public void ShowAlertPopup(string msg, IPopupOkReference popupRef = null) { alertPopup.SetActive(true); OnShowAlertPopup(msg, popupRef); }
void PopupManager_OnShowAlertPopup(string msg, IPopupOkReference popupOk = null) { description_txt.text = msg; popupRef = popupOk; }