private void Update() { if (_gameManager.IsGameStarted && !_gameManager.IsGameFinished) { transform.position = new Vector3(Mathf.Lerp(transform.position.x, _input.GetTouchPointX(), _movementSpeed * Time.deltaTime), transform.position.y, transform.position.z); CheckBounds(); if (_input.IsShootPressed()) { Shoot(); } } }