From 88a0a33dc3ebc8c6cef149f99a5618b239573d03 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Sat, 26 Dec 2020 13:56:56 +0800 Subject: [PATCH] Merge branch 'master' of http://47.95.218.140:8090/r/GemBattle --- 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