void Update() { //Moverse input = new Vector2(Input.GetAxis("Horizontal") * moveSpeed, _rigidbody.velocity.y); //Derecha if (input.x > 0) { direction = 1; } else if (input.x < 0) { direction = -1; } FlipSprite(); _rigidbody.velocity = input; groundCheck(); if (Input.GetButtonDown("Jump")) { Jump(); } if (canShoot) { if (Input.GetButton("Fire1")) { if (BulletManager.CanShoot()) { ShootBullet(); } } } ShootTimer(); }