private void Update() { CalculateVelocity(); ClimbControl(); VisibilityControl(); controller.Move(velocity * Time.deltaTime, directionalInput); if (controller.collisions.above || controller.collisions.below) { velocity.y = 0f; } if (controller.collisions.below) { gun.GetComponent <GunController>().canFire = true; } playerAnimationController.Animate(velocity, isClimbing, controller); }