From a1aa87db6855d784b473d194789eb5e3ff9e085d Mon Sep 17 00:00:00 2001
From: wangguan <wangguan@kt007.com>
Date: Sat, 05 Dec 2020 18:48:39 +0800
Subject: [PATCH] 排行榜过多BUG

---
 Assets/Scripts/TowerDefense/UI/EndlessSettlementPropList.cs |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/Assets/Scripts/TowerDefense/UI/EndlessSettlementPropList.cs b/Assets/Scripts/TowerDefense/UI/EndlessSettlementPropList.cs
index 5a696b8..3101b0d 100644
--- a/Assets/Scripts/TowerDefense/UI/EndlessSettlementPropList.cs
+++ b/Assets/Scripts/TowerDefense/UI/EndlessSettlementPropList.cs
@@ -22,7 +22,7 @@
         private string iconPath = "UI/Props/";
 
         private string bgPath = "UI/Props/Di/";
-        private float slowTime = 0.3f;//物品挨个出现频率
+        private float slowTime = 0.1f;//物品挨个出现频率
 
         //private float parentHeight;//父物体高度
         GridLayoutGroup myGroup;
@@ -45,7 +45,7 @@
         /// </summary>
         public void RefreshList()
         {
-            Invoke("StartLater", slowTime);
+            Invoke("StartLater", 0.1f);
 
             // if (Application.platform == RuntimePlatform.WindowsEditor)
             // {
@@ -54,26 +54,28 @@
             // }
 
             return;
-            List<EndlessDrop> list = EndlessDropManager.instance.GetAllObtainedDrop();
+            // List<EndlessDrop> list = EndlessDropManager.instance.GetAllObtainedDrop();
 
-            for (int i = 0; i < list.Count; ++i)
-            {
-                if (list[i].Reward.type == CURRENCY.Gold)
-                {
-                    AddItem($"{(int)list[i].Reward.type}");
-                }
-                else
-                {
-                    for (int j = 0; j < list[i].Reward.count; ++j)
-                    {
-                        AddItem($"{(int)list[i].Reward.type}_{list[i].Reward.id}");
-                    }
-                }
-            }
+            // for (int i = 0; i < list.Count; ++i)
+            // {
+            //     if (list[i].Reward.type == CURRENCY.Gold)
+            //     {
+            //         AddItem($"{(int)list[i].Reward.type}");
+            //     }
+            //     else
+            //     {
+            //         for (int j = 0; j < list[i].Reward.count; ++j)
+            //         {
+            //             AddItem($"{(int)list[i].Reward.type}_{list[i].Reward.id}");
+            //         }
+            //     }
+            // }
         }
 
         private void StartLater()
         {
+            AudioSourceManager.Ins.Play(AudioEnum.End);
+
             StartCoroutine(ShowSlow());
         }
 

--
Gitblit v1.9.1