chenxin
2020-10-21 16afec10e117a04846266fa6584b3fb1329ec7d2
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);