From a0decdb9ab620ac38cb8254b19eebd5186a5ab58 Mon Sep 17 00:00:00 2001
From: chenxin <chenxin6991@163.com>
Date: Sat, 05 Dec 2020 13:33:56 +0800
Subject: [PATCH] 血条移除

---
 Assets/Scripts/UI/AgentBlood.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/Assets/Scripts/UI/AgentBlood.cs b/Assets/Scripts/UI/AgentBlood.cs
index 1b322ff..e1010ef 100644
--- a/Assets/Scripts/UI/AgentBlood.cs
+++ b/Assets/Scripts/UI/AgentBlood.cs
@@ -92,7 +92,9 @@
         {
             if (tween != null)
                 tween.Kill();
-            Hide();
+
+            if (gameObject != null)
+                Destroy(gameObject);
         }
 
         public void OnHealthChanged(HealthChangeInfo info)

--
Gitblit v1.9.1