From c22bdf2389c5143896e91d44e466d2d31630f6a2 Mon Sep 17 00:00:00 2001 From: Ino Date: Mon, 27 Jan 2025 13:37:33 +0900 Subject: [PATCH] =?UTF-8?q?hudui=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=EB=93=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Character/MyActor.cs | 2 +- Assets/Script/HUD/HUDUI.cs | 7 +++++++ Assets/Script/Info/InGameInfo.cs | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Assets/Script/Character/MyActor.cs b/Assets/Script/Character/MyActor.cs index a1b18bc0f..722a0ed13 100644 --- a/Assets/Script/Character/MyActor.cs +++ b/Assets/Script/Character/MyActor.cs @@ -82,7 +82,7 @@ public class MyActor : Actor } } } - else + else if (CurAnim < eAnim.Dodge) Play_Idle(); } protected virtual void Update_Move() diff --git a/Assets/Script/HUD/HUDUI.cs b/Assets/Script/HUD/HUDUI.cs index 44606ae47..4b5327268 100644 --- a/Assets/Script/HUD/HUDUI.cs +++ b/Assets/Script/HUD/HUDUI.cs @@ -28,6 +28,13 @@ public class HUDUI : HUDBase go_BossIcon.SetActive(_actor.IsSubRole(eSubRol.Boss)); } + public bool Get_Check() + { + if (DSUtil.CheckNull(m_Actor)) return true; + if (m_Actor.IsDead()) return true; + return false; + } + public void Set_HPSlider(double Hp, double MaxHp) { On_HUD(); diff --git a/Assets/Script/Info/InGameInfo.cs b/Assets/Script/Info/InGameInfo.cs index 294e7ad7d..f90a2a905 100644 --- a/Assets/Script/Info/InGameInfo.cs +++ b/Assets/Script/Info/InGameInfo.cs @@ -180,7 +180,7 @@ public partial class InGameInfo : MyCoroutine HUDUI temp = null; for (int i = 0; i < list_HUDUI.Count; i++) { - if (!list_HUDUI[i].gameObject.activeInHierarchy) + if (list_HUDUI[i].Get_Check()) { temp = list_HUDUI[i]; break;