chenxin
2020-10-22 85f0d13945f3aef5aef1b3c1b47c77cea0514c17
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);