コード例 #1
0
        public void SetGashaPriceType(GameWebAPI.RespDataGA_GetGachaInfo.PriceType priceType)
        {
            MasterDataMng.AssetCategory costAssetsCategory = priceType.GetCostAssetsCategory();
            string costAssetsValue = priceType.GetCostAssetsValue();

            this.SetAssets(this.leftAssetsIcon, this.leftAssetsNumber, costAssetsCategory, costAssetsValue);
            this.rightAssets.SetActive(false);
        }
コード例 #2
0
        public static MasterDataMng.AssetCategory GetCostAssetsCategory(this GameWebAPI.RespDataGA_GetGachaInfo.PriceType priceType)
        {
            MasterDataMng.AssetCategory assetCategory = MasterDataMng.AssetCategory.NO_DATA_ID;
            int num = 0;

            if (int.TryParse(priceType.category, out num))
            {
                assetCategory = (MasterDataMng.AssetCategory)num;
            }
            Debug.Assert(MasterDataMng.AssetCategory.NO_DATA_ID != assetCategory, "支払うアセットカテゴリーIDの取得に失敗.");
            return(assetCategory);
        }
コード例 #3
0
 public static string GetCostAssetsValue(this GameWebAPI.RespDataGA_GetGachaInfo.PriceType priceType)
 {
     return(priceType.value);
 }