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); }
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); }
public static string GetCostAssetsValue(this GameWebAPI.RespDataGA_GetGachaInfo.PriceType priceType) { return(priceType.value); }