Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 void changeGravity(bool gravityOn)
 {
     if (playerGravity)
     {
         playerGravity.ToggleGravity(gravityOn);
     }
 }