| | |
| | | }
|
| | | }
|
| | |
|
| | | public bool IsAdvance
|
| | | {
|
| | | get
|
| | | {
|
| | | return OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.GiftPackage);
|
| | | }
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | IsShowPanel = false;
|
| | |
| | | if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.GiftPackage, out operationBase))
|
| | | {
|
| | | GiftPackageClass operation = operationBase as GiftPackageClass;
|
| | | var index = operation.IndexOfFlashShop();
|
| | | if (index != -1 && index < operation.giftpackage1.Count)
|
| | | GiftPackageClass.Gift_Package gift;
|
| | | if (operation.TryGetGift(TimeUtility.ServerNow, out gift))
|
| | | {
|
| | | var giftpackage = operation.giftpackage1[index];
|
| | | if (giftpackage.gifts.Length > 0)
|
| | | if (gift.gifts.Length > 0)
|
| | | {
|
| | | int BuyCountLimit = giftpackage.gifts[0].limitNum;//限购数量
|
| | | int GiftID = giftpackage.gifts[0].id;//礼包ID
|
| | | int BuyCountLimit = gift.gifts[0].limitNum;//限购数量
|
| | | int GiftID = gift.gifts[0].id;//礼包ID
|
| | | if (DicBuyPackage.ContainsKey(GiftID) && DicBuyPackage[GiftID] >= BuyCountLimit)
|
| | | {
|
| | | IsBuyBool = true;
|