| | |
| | | switch (buyState)
|
| | | {
|
| | | case -1:
|
| | | this.gameObject.SetActive(true);
|
| | | string timeStr = operation.ToDisplayBuyTime(date.month, dayIndex + date.day, operationTime.startHour, operationTime.startMinute);
|
| | | remainText.text = Language.Get("FlashRushToBuy106", timeStr);
|
| | | string timeStr = "";
|
| | | if(seconds > 7200)
|
| | | {
|
| | | timeStr = operation.ToDisplayBuyTime(date.month, dayIndex + date.day, operationTime.startHour, operationTime.startMinute);
|
| | | remainText.text = Language.Get("FlashRushToBuy106", timeStr);
|
| | | }
|
| | | else
|
| | | {
|
| | | timeStr = TimeUtility.SecondsToHMS(seconds);
|
| | | remainText.text = Language.Get("FlashRushToBuy108", timeStr);
|
| | | }
|
| | | break;
|
| | | case 0:
|
| | | this.gameObject.SetActive(true);
|
| | | remainText.text = Language.Get("FlashRushToBuy105", TimeUtility.SecondsToHMS(seconds));
|
| | | break;
|
| | | case 1:
|
| | |
| | | {
|
| | | if(PlayerDatas.Instance.baseData.LV >= limitLv)
|
| | | {
|
| | | if(InAdvanceTime(TimeUtility.ServerNow) || InTime(TimeUtility.ServerNow))
|
| | | if(flashShops.Count > 0)
|
| | | {
|
| | | return true;
|
| | | int openSeconds = 0;
|
| | | int endSeconds = 0;
|
| | | var fristShop = flashShops[0];
|
| | | var lastShop = flashShops[flashShops.Count - 1];
|
| | | int OpenState = GetBuyTimeState(TimeUtility.ServerNow,fristShop.dayIndex,fristShop.timeIndex, out openSeconds);
|
| | | int endState = GetBuyTimeState(TimeUtility.ServerNow,lastShop.dayIndex, lastShop.timeIndex,out endSeconds);
|
| | | if(OpenState == -1 && openSeconds <= inAdvanceMinute*60)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else if(endState != 1 && OpenState != -1)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | }
|
| | | }
|
| | | return false;
|
| | |
| | | var item = new FlashSaleItem();
|
| | | var saleItem = shop.GiftbagInfo[k];
|
| | | item.shopId = (int)saleItem.GiftID;
|
| | | item.shopGuid = shop.DayIndex*1000 + shop.TimeIndex*100 + k;
|
| | | item.shopGuid = shop.DayIndex*10000 + shop.TimeIndex*100 + k;
|
| | | item.limitNum = saleItem.BuyCountLimit;
|
| | | item.fullServerLimitNum = saleItem.ServerBuyCountLimit;
|
| | | item.moneyType = saleItem.MoneyType;
|