diff --git a/Assets/Scripts/Player/ShopColliderDetection.cs b/Assets/Scripts/Player/ShopColliderDetection.cs index 89ecd76b66d67c4abf63b2344c072dbaff300417..1f9346d00b8733ef0ccf6810db20ca3e2c5d34c1 100644 --- a/Assets/Scripts/Player/ShopColliderDetection.cs +++ b/Assets/Scripts/Player/ShopColliderDetection.cs @@ -14,7 +14,7 @@ public class ColliderChecker : MonoBehaviour // Check if the targetObject is within the collider of this GameObject if (!GetComponent<Collider>().bounds.Intersects(shopKeeper.GetComponent<SphereCollider>().bounds)) { - if (Input.GetKeyDown(KeyCode.Z) && !saveRadius.playerInRange) + if ((Input.GetKeyDown(KeyCode.Z) || Input.GetButton("X Button")) && Time.timeScale == 1 && !saveRadius.playerInRange) { StartCoroutine(ErrorMessage()); }