public List <UIDropAnnounce.DropAnnounceInfo> CreateDropAnnounceInfoList(List <DropDeliveryInfo> deliveryInfo, List <DropItemInfo> itemInfo, bool isTreasureBox) { List <UIDropAnnounce.DropAnnounceInfo> list = new List <UIDropAnnounce.DropAnnounceInfo>(); int i = 0; for (int count = deliveryInfo.Count; i < count; i++) { bool flag = MonoBehaviourSingleton <DeliveryManager> .I.IsCompletableDelivery(deliveryInfo[i].id); MonoBehaviourSingleton <DeliveryManager> .I.ProgressDelivery(deliveryInfo[i].id, deliveryInfo[i].index, deliveryInfo[i].num); int have = 0; int need = 0; MonoBehaviourSingleton <DeliveryManager> .I.GetProgressDelivery(deliveryInfo[i].id, out have, out need, (uint)deliveryInfo[i].index); UIDropAnnounce.DropAnnounceInfo dropAnnounceInfo = new UIDropAnnounce.DropAnnounceInfo(); dropAnnounceInfo.text = StringTable.Format(STRING_CATEGORY.IN_GAME, 2001u, deliveryInfo[i].itemName, deliveryInfo[i].num, have, need); dropAnnounceInfo.color = UIDropAnnounce.COLOR.DELIVERY; list.Add(dropAnnounceInfo); if (have >= need) { GameSection currentSection = MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSection(); if (currentSection != null) { InGameMain component = currentSection.GetComponent <InGameMain>(); if (component != null) { component.OnNoticeCompletedDelivery(); } } if (flag != MonoBehaviourSingleton <DeliveryManager> .I.IsCompletableDelivery(deliveryInfo[i].id) && MonoBehaviourSingleton <UIAnnounceBand> .IsValid()) { string empty = string.Empty; empty = ((!DeliveryManager.IsDeliveryBingo((uint)deliveryInfo[i].id)) ? StringTable.Get(STRING_CATEGORY.DELIVERY_COMPLETE, 0u) : StringTable.Get(STRING_CATEGORY.DELIVERY_COMPLETE, 2u)); MonoBehaviourSingleton <UIAnnounceBand> .I.SetAnnounce(deliveryInfo[i].name, empty); SoundManager.PlayOneshotJingle(40000030, null, null); MonoBehaviourSingleton <CoopManager> .I.coopStage.fieldRewardPool.SendFieldDrop(null); } if (MonoBehaviourSingleton <DropTargetMarkerManeger> .IsValid()) { MonoBehaviourSingleton <DropTargetMarkerManeger> .I.UpdateList(); } } } if (MonoBehaviourSingleton <InventoryManager> .IsValid() && isTreasureBox) { int j = 0; for (int count2 = itemInfo.Count; j < count2; j++) { MonoBehaviourSingleton <InventoryManager> .I.AddInGameTempItem(itemInfo[j].id, itemInfo[j].num); bool is_rare = false; list.Add(itemInfo[j].CreateAnnounceInfo(out is_rare)); if (is_rare) { MonoBehaviourSingleton <StageObjectManager> .I.self.OnGetRareDrop(itemInfo[j].type, (int)itemInfo[j].id); } } } return(list); }