chenxin
2020-12-05 a0decdb9ab620ac38cb8254b19eebd5186a5ab58
血条移除
2 files modified
7 ■■■■ changed files
Assets/Scripts/TowerDefense/Agents/Agent.cs 3 ●●●● patch | view | raw | blame | history
Assets/Scripts/UI/AgentBlood.cs 4 ●●● patch | view | raw | blame | history
Assets/Scripts/TowerDefense/Agents/Agent.cs
@@ -658,7 +658,8 @@
                ps?.Play();
            }
            BloodBar.Hide();
            if (BloodBar)
                Destroy(BloodBar.gameObject);
            // 统一管理器内删除当前的Agent:
            AgentInsManager.instance.removeAgent(this);
            if (EnemyData != null)
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)