| | |
| | | timeIndex = -1;
|
| | | if (operation == null) return;
|
| | |
|
| | | int days = operation.totalDays;
|
| | | int days = operation.totalDays + 1;
|
| | | dayIndex = cell.index/(operation.flashShops.Count / days);
|
| | | timeIndex = cell.index % (operation.flashShops.Count / days);
|
| | | if(dayIndex == rushToBuyModel.presentFlashShop.dayIndex
|
| | |
| | |
|
| | | public void UpdateBuyState()
|
| | | {
|
| | | if (operation == null) return;
|
| | | if (operation == null || timeIndex == -1) return;
|
| | |
|
| | | int seconds = 0;
|
| | | OperationTime operationTime = operation.times[timeIndex];
|
| | |
| | | remainText.text = StringUtility.Contact("秒杀进行中", TimeUtility.SecondsToHMS(seconds));
|
| | | break;
|
| | | case 1:
|
| | | if(selectImg.activeInHierarchy)
|
| | | {
|
| | | rushToBuyModel.SetDefaultSelectSaleTime();
|
| | | }
|
| | | this.gameObject.SetActive(false);
|
| | | rushToBuyModel.UpdateSelectFlashSaleTime(dayIndex, timeIndex);
|
| | | break;
|
| | | }
|
| | | }
|