chenxin
2020-12-18 7b9712f33f42b14e4d277166fa533a379021312d
Assets/Scripts/TowerDefense/Agents/WoodPileAgent.cs
@@ -13,14 +13,13 @@
    public class WoodPileAgent : Agent
    {
        /// <summary>
        /// 外部赋值,唯一标识一个泡泡炸弹代理
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        ///  木桩墙壁收到货塔攻击的额外伤害倍率
        /// </summary>
        public float FireHurtRate { get; set; }
        public GameObject appearPS;
        public GameObject diePS;
        /// <summary>
        /// Peforms the relevant path update
@@ -58,6 +57,12 @@
            // 统一管理器内删除当前的Agent:
            AgentInsManager.instance.removeAgent(this);
            if (BloodBar != null)
            {
                BloodBar.Target = null;
                Destroy(BloodBar.gameObject);
            }
            configuration.SetHealth(0);
            OnRemoved();
@@ -78,7 +83,15 @@
            if (MoveStopTime > 0)
                MoveStopTime = 0.0f;
            Poolable.TryPool(gameObject);
            appearPS.SetActive(false);
            diePS.SetActive(true);
            Invoke("DestroySelf", 1.0f);
        }
        private void DestroySelf()
        {
            Destroy(gameObject);
        }
        protected override void SetAgentStopBuff(buffinfo binfo)