コード例 #1
0
        protected void UpdateUserAssetsInventory(int playCount)
        {
            GameWebAPI.RespDataGA_GetGachaInfo.Detail detail = this.gashaInfo.details.GetDetail(playCount);
            int value = 0;

            if (int.TryParse(detail.GetPrice(), out value))
            {
                UserInventory.CalculateNumber(this.gashaInfo.priceType.GetCostAssetsCategory(), this.gashaInfo.priceType.GetCostAssetsValue(), value);
            }
        }
コード例 #2
0
 private void BuyEventDng_OK()
 {
     RestrictionInput.EndLoad();
     GameWebAPI.ResponseWorldStageForceOpenMaster.ForceOpen questForceOpen = QuestData.GetQuestForceOpen(int.Parse(this.worldStageData.worldStageM.worldStageId));
     UserInventory.CalculateNumber((MasterDataMng.AssetCategory)questForceOpen.assetCategoryId, questForceOpen.assetValue.ToString(), questForceOpen.assetNum);
     GUIPlayerStatus.RefreshParams_S(false);
     this.worldStageData.wdi.isOpen = 1;
     this.SetOpenStatus();
     this.ExecuteTouch(true);
 }