From 85f0d13945f3aef5aef1b3c1b47c77cea0514c17 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Thu, 22 Oct 2020 16:06:50 +0800 Subject: [PATCH] Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master --- Assets/Scripts/TowerDefense/Agents/Agent.cs | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/TowerDefense/Agents/Agent.cs b/Assets/Scripts/TowerDefense/Agents/Agent.cs index daef255..f006738 100644 --- a/Assets/Scripts/TowerDefense/Agents/Agent.cs +++ b/Assets/Scripts/TowerDefense/Agents/Agent.cs @@ -991,6 +991,18 @@ { if (mAnim) { + if (isPoison) + { + isPoison = false; + // 移除Agent身上的中毒特效,并播放一个中毒效果消失的特效 + if (PoisonParticle != null) + { + PoisonParticle.Stop(); + if (PoisonEndParticle != null) + PoisonEndParticle.Play(); + } + } + mAnim.SetBool("Die", true); // 统一管理器内删除当前的Agent: AgentInsManager.instance.removeAgent(this); -- Gitblit v1.9.1