public PopupData(string desc, string btnTitle, MSG_POPUP_TYPE type, CommonData.POINT_TYPE pointType, int value, UnityAction yesAction) { Title = string.Empty; Desc = desc; BtnTitle = btnTitle; MsgPopupType = type; YesAction = yesAction; PointValue = value; PointType = pointType; }
public PopupData(string desc, UnityAction yesAction, UnityAction noAction = null, UnityAction chargeAction = null) { Title = string.Empty; Desc = desc; if (chargeAction != null) { MsgPopupType = MSG_POPUP_TYPE.YES_CHARGE; } else { MsgPopupType = MSG_POPUP_TYPE.YES_NO; } YesAction = yesAction; NoAction = noAction; ChargeAction = chargeAction; }
public PopupData(string desc) { Title = string.Empty; Desc = desc; MsgPopupType = MSG_POPUP_TYPE.OK; }