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);