From 63133cf5403a9d7fbe3811d20c3d24f26a752449 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Thu, 22 Oct 2020 16:06:35 +0800
Subject: [PATCH] 无尽模式,添加法阵展示和结算界面滑动列表

---
 Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs b/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
index 1f096ba..7711724 100644
--- a/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
+++ b/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
@@ -220,5 +220,20 @@
 
             return true;
         }
+
+        /// <summary>
+        /// 拾取所有还未拾取的掉落
+        /// </summary>
+        public void PickUpAllDrop()
+        {
+            for (int i = 0; i < AllDropList.Count; ++i)
+            {
+                if (AllDropList[i].IsPickupCompleted) continue;
+
+                AllDropList[i].IsPickupCompleted = true;
+                SafelyCallObtainDrop(AllDropList[i]);
+                RemoveDrop(AllDropList[i].Id);
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1