From 74daf5509be4fc140fd1bdb6d4df5f1c1002e368 Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Thu, 22 Oct 2020 17:28:08 +0800 Subject: [PATCH] Merge branch 'master' of ssh://172.16.1.52:8091/GemBattle --- 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