From 7577aa269caedb0eab65dd29ca21b3791a2130c3 Mon Sep 17 00:00:00 2001 From: KrolMel Date: Wed, 28 Dec 2022 17:22:11 +0100 Subject: [PATCH] text panels - fix distance opening II --- Assets/Scenes/FirstVillage.unity | 2 +- Assets/Scripts/REFACTORING/Application/NPC/NpcShopManager.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scenes/FirstVillage.unity b/Assets/Scenes/FirstVillage.unity index 31887dfe..0916769a 100644 --- a/Assets/Scenes/FirstVillage.unity +++ b/Assets/Scenes/FirstVillage.unity @@ -239149,7 +239149,7 @@ MonoBehaviour: Value: {fileID: 11400000, guid: 54f1e69d5ede2d74eb4f3f95cdb7e20a, type: 2} - Key: 5 Value: {fileID: 11400000, guid: c96390ceb0786494db5919aaad6a06be, type: 2} - - Key: 23 + - Key: 13 Value: {fileID: 11400000, guid: 5e28ddfc23a61b842bb3007b766d1649, type: 2} --- !u!114 &593922350 MonoBehaviour: diff --git a/Assets/Scripts/REFACTORING/Application/NPC/NpcShopManager.cs b/Assets/Scripts/REFACTORING/Application/NPC/NpcShopManager.cs index ef67f208..6fe83ea9 100644 --- a/Assets/Scripts/REFACTORING/Application/NPC/NpcShopManager.cs +++ b/Assets/Scripts/REFACTORING/Application/NPC/NpcShopManager.cs @@ -105,6 +105,7 @@ public class NpcShopManager : MonoBehaviour if (Dialogue.DialogueSteps.First().DialogueController?.CurrentPanel != null) Dialogue.BreakDialogueStep(); + gameObject.GetComponent().CanBeOpened = false; CloseShop(); }