From 2669e465a82faa0440165f7c38ca69f11135587a Mon Sep 17 00:00:00 2001 From: liuzhiwei <liuzhiwei@qq.com> Date: Wed, 28 Oct 2020 20:27:36 +0800 Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master --- Assets/Scripts/TowerDefense/Level/WaveLineSelMgr.cs | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/TowerDefense/Level/WaveLineSelMgr.cs b/Assets/Scripts/TowerDefense/Level/WaveLineSelMgr.cs index ee552bd..4c25214 100644 --- a/Assets/Scripts/TowerDefense/Level/WaveLineSelMgr.cs +++ b/Assets/Scripts/TowerDefense/Level/WaveLineSelMgr.cs @@ -193,7 +193,7 @@ ps = obj.transform.GetChild(0).GetComponent<ParticleSystem>(); ps.transform.position = LevelManager.instance.waveManager.GetWaveEndPos(id); ps.Play(); - Destroy(ps.gameObject, ps.main.duration); + Destroy(obj, ps.main.duration); } /// <summary> @@ -211,9 +211,8 @@ ps = obj.transform.GetChild(0).GetComponent<ParticleSystem>(); ps.transform.position = pos; ps.Play(); - Destroy(ps.gameObject, ps.main.duration); + Destroy(obj, ps.main.duration); } - /// <summary> /// 对应兵线发亮. -- Gitblit v1.9.1