diff --git a/Assets/Scripts/Managers/ShopKeeperManager.cs b/Assets/Scripts/Managers/ShopKeeperManager.cs index 794dc7f4c34bfec81435cb0d56daf49c44417a3c..fb36cb999569f91f5261ec3178f5a2f460d7332f 100644 --- a/Assets/Scripts/Managers/ShopKeeperManager.cs +++ b/Assets/Scripts/Managers/ShopKeeperManager.cs @@ -30,15 +30,17 @@ public class ShopKeeperManager : MonoBehaviour float distance = Vector3.Distance(shopKeeper.transform.position, player.transform.position); bool isPressedTab = Input.GetKeyDown(KeyCode.Tab); - if (distance < 7.5 && JedaManager.isJeda) { - if (isPressedTab) { - ShowShopKeeper(); + if (JedaManager.isJeda){ + if (distance < 7.5) { + if (isPressedTab) { + ShowShopKeeper(); + } else { + NotificationManager.ShowNotification("Press Tab to open the Shopkeeper!!", 0.2f); + } } else { - NotificationManager.ShowNotification("Press Tab to open the Shopkeeper!!", 0.2f); - } - } else { - if (isPressedTab) { - NotificationManager.ShowNotification("Go to the Dollhouse to open the shopkeeper!!", 2.0f); + if (isPressedTab) { + NotificationManager.ShowNotification("Go to the Dollhouse to open the shopkeeper!!", 2.0f); + } } } }