using System.Collections; using System.Collections.Generic; using UnityEngine; public class RechargeVo { public RechargeVo(int id) { this.rmbId = id; } /// /// 是否是首冲 true:是 /// public bool isFirstRecharge { get { if (UserProxy.Instance.player.shopdata.rechargeRecordList.Contains(this.rmbId)) { return false; } return true; } } /// /// 充值金额 /// public int rmbId { get; set; } public string productName { get { int num = rmbId * 10; if (isFirstRecharge) { num = rmbId * 10 * this.rechargeDouble; } string ctx = "钻石*"+num; return ctx; } } /// /// 充值获得的钻石数量 /// public int cashNum { get { return this.rmbId*10; } } /// /// 翻几倍 /// public int rechargeDouble { get { return this.rechargeMo.firstDouble; } } public sm_recharge rechargeMo { get { return GameConfigData.Ins.GetrechargeMo(this.rmbId); } } }