From e28fd5cc81c68db8efcab33ea526643aae5e2c19 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Thu, 22 Oct 2020 19:18:57 +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