From 740f6d3b1facc92e3130addaed0d133933748c29 Mon Sep 17 00:00:00 2001 From: chenxin <chenxin6991@163.com> Date: Wed, 09 Dec 2020 11:55:57 +0800 Subject: [PATCH] 哪条赛道出怪,技能就作用在哪条赛道上 √ 木桩血条没有清楚 √ 赛道类型7 √ --- Assets/Scripts/TowerDefense/Agents/Agent.cs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/TowerDefense/Agents/Agent.cs b/Assets/Scripts/TowerDefense/Agents/Agent.cs index c1b7c8a..1fa799f 100644 --- a/Assets/Scripts/TowerDefense/Agents/Agent.cs +++ b/Assets/Scripts/TowerDefense/Agents/Agent.cs @@ -691,7 +691,10 @@ } if (BloodBar) + { + BloodBar.Target = null; Destroy(BloodBar.gameObject); + } // 统一管理器内删除当前的Agent: AgentInsManager.instance.removeAgent(this); if (EnemyData != null) -- Gitblit v1.9.1