コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public PopupData(string desc)
 {
     Title        = string.Empty;
     Desc         = desc;
     MsgPopupType = MSG_POPUP_TYPE.OK;
 }