weixudong
2020-12-09 17c6e8b6f2aee4ed9a15c886f54a73f0cb61b125
Assets/Scripts/TowerDefense/Agents/Agent.cs
@@ -291,6 +291,19 @@
                speedSlowRate = 0.5f;
        }
        private bool _HasSlowDownText;
        public bool HasSlowDownText
        {
            set
            {
                _HasSlowDownText = value;
            }
            get
            {
                return _HasSlowDownText;
            }
        }
        /// <summary>
        /// 怪物中毒.
        /// </summary>
@@ -678,7 +691,10 @@
            }
            if (BloodBar)
            {
                BloodBar.Target = null;
                Destroy(BloodBar.gameObject);
            }
            // 统一管理器内删除当前的Agent:
            AgentInsManager.instance.removeAgent(this);
            if (EnemyData != null)
@@ -762,6 +778,7 @@
            // 获取移动速度
            fMoveSpeed = m_NavMeshAgent.speed / 2.0f;
            _HasSlowDownText = false;
        }
        protected void beDamageStart()