From 93f67abd5fe45178f48ce7db675bbfe007bfc9e7 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Wed, 18 Nov 2020 19:25:29 +0800 Subject: [PATCH] 按钮恢复成原来资源 打包 --- 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