Assets/Scripts/TowerDefense/Agents/WoodPileAgent.cs
@@ -53,6 +53,12 @@ // 统一管理器内删除当前的Agent: AgentInsManager.instance.removeAgent(this); if (BloodBar != null) { BloodBar.Target = null; Destroy(BloodBar.gameObject); } configuration.SetHealth(0); OnRemoved(); @@ -73,7 +79,7 @@ if (MoveStopTime > 0) MoveStopTime = 0.0f; Poolable.TryPool(gameObject); Destroy(gameObject); } protected override void SetAgentStopBuff(buffinfo binfo)