void onGrabbedClimbable() { // Don't allow player movement while climbing if (smoothLocomotion) { smoothLocomotion.DisableMovement(); } // No gravity on the player while climbing if (playerGravity) { playerGravity.ToggleGravity(false); } }
void changeGravity(bool gravityOn) { if (playerGravity) { playerGravity.ToggleGravity(gravityOn); } }