| | |
| | | }
|
| | | }
|
| | | }
|
| | | models = pairs[idlist[idlist.Count - 1]];
|
| | | if (isOverdue && models != null && models.Count > 0)
|
| | | if (isOverdue)
|
| | | {
|
| | | ItemModel overdueModel = models[0];
|
| | | guardOverdueIndex = overdueModel.itemInfo.ItemPlace;
|
| | | OnGetOverdueItem(overdueModel.itemInfo.ItemID, overdueModel.itemInfo.ItemGUID, overdueModel.itemInfo.ItemPlace);
|
| | | for (int i = idlist.Count - 1; i > -1; i--)
|
| | | {
|
| | | models = pairs[idlist[i]];
|
| | | if (models != null && models.Count > 0)
|
| | | {
|
| | | ItemModel overdueModel = models[0];
|
| | | guardOverdueIndex = overdueModel.itemInfo.ItemPlace;
|
| | | OnGetOverdueItem(overdueModel.itemInfo.ItemID, overdueModel.itemInfo.ItemGUID, overdueModel.itemInfo.ItemPlace);
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | models = allGuardDict[type][idlist[idlist.Count - 1]];
|
| | | if (isOverdue && models != null && models.Count > 0)
|
| | | if(isOverdue)
|
| | | {
|
| | | ItemModel itemModel = models[0];
|
| | | if (!overdueGuardPushlist.Contains(itemModel))
|
| | | for (int i = idlist.Count - 1; i > -1; i--)
|
| | | {
|
| | | overdueGuardPushlist.Add(itemModel);
|
| | | models = allGuardDict[type][idlist[i]];
|
| | | if(models != null && models.Count > 0)
|
| | | {
|
| | | ItemModel itemModel = models[0];
|
| | | if (!overdueGuardPushlist.Contains(itemModel))
|
| | | {
|
| | | overdueGuardPushlist.Add(itemModel);
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|