private void Update() { if (Input.GetKeyDown(GameManagerComponent.Instance.InteractionKey) && _currentShop == this) { if (_player.CanBuy(_cost)) { _player.AddMoney(-_cost); Instantiate(_effect, Vector3.zero, Quaternion.identity); } } }