public void onClickDialogBtn(CommonDefine.eDialogBtnType btn, CommonDefine.eDialogEventType type) { if (btn == CommonDefine.eDialogBtnType.DIALOG_BTN_OK) { GameEvent.EM().InvokeEvent(GameEvent.EVENT.ABANDON, null); } }
public void init(CommonDefine.eDialogEventType type, string tip, bool hasClose, bool hasOk, bool hasCancel, Action <CommonDefine.eDialogBtnType, CommonDefine.eDialogEventType> callBack) { _eventType = type; _callBack = callBack; _tip.text = tip; _okBtn.gameObject.SetActive(hasOk); _cancelBtn.gameObject.SetActive(hasCancel); _closeBtn.gameObject.SetActive(hasClose); }
public void showDialog(CommonDefine.eDialogEventType type, string tip, bool hasClose, bool hasOk, bool hasCancel, Action <CommonDefine.eDialogBtnType, CommonDefine.eDialogEventType> callBack) { Dialog dlg = Instantiate(_dialogPrefab, new Vector3(0, 0, 0), Quaternion.identity); dlg.init(type, tip, hasClose, hasOk, hasCancel, callBack); dlg.transform.SetParent(this.transform); dlg.transform.position = this.transform.position; dlg.transform.localScale = dlg.transform.localScale * CommonUtil.Util.getScreenScale(); dlg.openDialog(true); }
void onClickDialogBtn(CommonDefine.eDialogBtnType btn, CommonDefine.eDialogEventType type) { if (type == CommonDefine.eDialogEventType.LOBBY_EMAIL_GET_AWARD_RESULT) { } }