From 6d8e9d8cba011a7a4cab41c3c270215d74d20d54 Mon Sep 17 00:00:00 2001 From: Ino Date: Tue, 5 Aug 2025 12:57:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=B9=20=EB=A6=AC=EC=A0=A0=20=EC=8B=9C=20?= =?UTF-8?q?=EC=95=88=EB=B3=B4=EC=9D=B4=EB=8A=94=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Ino_nerdnavis.txt | 2 +- Assets/Script/Character/Mob/MobActor.cs | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Assets/Ino_nerdnavis.txt b/Assets/Ino_nerdnavis.txt index 92ff926b8..749ee781b 100644 --- a/Assets/Ino_nerdnavis.txt +++ b/Assets/Ino_nerdnavis.txt @@ -85,7 +85,7 @@ messageinfo 엄청 느린 버그 맵 배치 (3,4,5) - 포탈, 필드보스, 부활의 성소, 챕터보스 -공격 시 적을 바라보게 + diff --git a/Assets/Script/Character/Mob/MobActor.cs b/Assets/Script/Character/Mob/MobActor.cs index 0234f6331..d42dbfbc3 100644 --- a/Assets/Script/Character/Mob/MobActor.cs +++ b/Assets/Script/Character/Mob/MobActor.cs @@ -48,12 +48,6 @@ public class MobActor : Actor public override void Set(bool isEnemy, Actor owner, ServerData sdata, int _id, bool _stop, bool _ui = false) { - if (dic_mainMat.Count > 0) - { - for (int i = 0; i < arr_Renderer.Length; i++) - arr_Renderer[i].material = dic_mainMat[arr_Renderer[i].name]; - } - base.Set(isEnemy, owner, sdata, _id, _stop); m_PatrolTime = 0f; @@ -140,6 +134,15 @@ public class MobActor : Actor list_summon.ForEach(f => f.Off()); } } + public override void Off() + { + base.Off(); + if (dic_mainMat.Count > 0) + { + for (int i = 0; i < arr_Renderer.Length; i++) + arr_Renderer[i].material = dic_mainMat[arr_Renderer[i].name]; + } + } protected override void Update() {