From f2f4e1e45981bb294a5221ade7b4646cc3e29d35 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Wed, 11 Nov 2020 18:56:44 +0800
Subject: [PATCH] 无尽模式分数

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

diff --git a/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs b/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
index e70bf07..2a7504b 100644
--- a/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
+++ b/Assets/Scripts/TowerDefense/Level/EndlessDropManager.cs
@@ -69,7 +69,7 @@
                 if (AllDropList[i].ElapsedTime >= AllDropList[i].AutoPickupTime)
                 {
                     EndlessDropReward dropReward = DropObjDic[AllDropList[i].Id].GetComponent<EndlessDropReward>();
-                    dropReward?.OnClick();
+                    // dropReward?.OnClick();
 
                     //AllDropList[i].IsPickupCompleted = true;
                     //SafelyCallObtainDrop(AllDropList[i]);
@@ -104,15 +104,15 @@
         /// <param name="pos">小怪的世界坐标</param>
         public void AddDrop(List<reward> list, Vector3 pos)
         {
-            for (int i = 0; i < list.Count; ++i)
-            {
-                EndlessDrop drop = new EndlessDrop();
-                drop.Reward = list[i];
-                drop.Id = GetDropId();
-                drop.AutoPickupTime = AutoPickupTime;
-                CreateDrop(drop, pos, list.Count > 0);
-                AllDropList.Add(drop);
-            }
+            // for (int i = 0; i < list.Count; ++i)
+            // {
+            //     EndlessDrop drop = new EndlessDrop();
+            //     drop.Reward = list[i];
+            //     drop.Id = GetDropId();
+            //     drop.AutoPickupTime = AutoPickupTime;
+            //     CreateDrop(drop, pos, list.Count > 0);
+            //     AllDropList.Add(drop);
+            // }
         }
 
         /// <summary>

--
Gitblit v1.9.1