//// currency 불러오기 & 세팅 private void GetData_currency(JsonData data) { currencyManager.Gold = decimal.Parse(data["gold"][0].ToString()); currencyManager.Jewel = long.Parse(data["jewel"][0].ToString()); currencyManager.Token = long.Parse(data["token"][0].ToString()); /////// 각 재화 뻥튀기 //currencyManager.Gold += 100000000000; //currencyManager.Jewel += 100000; ///////////////////////////////////////////////////// //currencyManager.Token += 100000; if (currencyManager.Jewel <= 0) { currencyManager.Jewel = 0; } if (currencyManager.Token <= 0) { currencyManager.Token = 0; } for (int i = 0; i < CentralInfoManager.NUMBEROFBOXKEYKINDS; i++) { CentralInfoManager.boxCountList.Add(int.Parse(data["boxCountList"]["L"][i]["N"].ToString())); CentralInfoManager.keyCountList.Add(int.Parse(data["keyCountList"]["L"][i]["N"].ToString())); if (CentralInfoManager.keyCountList[i] < 0) { CentralInfoManager.keyCountList[i] = 0; } } CentralInfoManager.keyCountList[1] = 5; //////////////////////////////////////// for (int i = 0; i < PetManager.PETKINDS; i++) { petManager.petLevel.Add(int.Parse(data["petLevel"]["L"][i]["N"].ToString())); petManager.petStat.Add(float.Parse(data["petStat"]["L"][i]["N"].ToString())); petManager.isPetBuy.Add(bool.Parse(data["isPetBuy"]["L"][i]["S"].ToString())); } petMenu.mountingPetIndex = int.Parse(data["mountingPetIndex"][0].ToString()); CentralInfoManager.ticket_nickNameChange = int.Parse(data["ticket_nickNameChange"][0].ToString()); CentralInfoManager.rebirthCoupon = int.Parse(data["rebirthCoupon"][0].ToString()); CentralInfoManager.anyOpenKey = int.Parse(data["anyOpenKey"][0].ToString()); CentralInfoManager.lpPotion = int.Parse(data["lpPotion"][0].ToString()); CentralInfoManager.rebirthCoupon_DailyCount = int.Parse(data["rebirthCoupon_DailyCount"][0].ToString()); CentralInfoManager.lpPotion_DailyCount = int.Parse(data["lpPotion_DailyCount"][0].ToString()); centralInfoManager.monthlyJewelProductBuyDate = data["monthlyJewelProductBuyDate"][0].ToString(); centralInfoManager.boxOpenCoolTime_ad = int.Parse(data["boxOpenCoolTime_ad"][0].ToString()); centralInfoManager.boxOpenCount_ad = int.Parse(data["boxOpenCount_ad"][0].ToString()); var dic = data as IDictionary; if (!dic.Contains("monthlyJewelPayments")) { centralInfoManager.monthlyJewelPayments = false; } else { centralInfoManager.monthlyJewelPayments = bool.Parse(data["monthlyJewelPayments"][0].ToString()); } if (!centralInfoManager.monthlyJewelProductBuyDate.Equals("")) { var savedDay = Convert.ToDateTime(centralInfoManager.monthlyJewelProductBuyDate); TimeSpan dateDiff = Convert.ToDateTime(DateTime.Now) - savedDay; var diffDay = dateDiff.Days; if (diffDay > CentralInfoManager.MonthlyProduct_PERIOD) { centralInfoManager.monthlyJewelProductBuyDate = ""; shopMenu.MonthlyProductSetting("", false); } else { shopMenu.MonthlyProductSetting(diffDay.ToString(), true); if (centralInfoManager.monthlyJewelPayments.Equals(false)) { currencyManager.Jewel += CentralInfoManager.MonthlyProduct_DAILYREWARD; centralInfoManager.monthlyJewelPayments = true; GameManager.SaveLogToServer("받은 날 정보", string.Format("{0}일차 / {1} 구매", diffDay, centralInfoManager.monthlyJewelProductBuyDate), "월간 상품 보석 획득"); } } } else { shopMenu.MonthlyProductSetting("", false); } saveManager.indate_currency = data["inDate"][0].ToString(); isReadyDone[1] = true; }