SuperCharacterController.EnableClamping C# (CSharp) Method

EnableClamping() public method

public EnableClamping ( ) : void
return void
    public void EnableClamping()
    {
        clamping = true;
    }

Usage Example

Exemplo n.º 1
0
        // Below are the state functions. Each one is called based on the name of the state, so when currentState = Idle,
        // we call Idle_EnterState. If currentState = Jump, we call Jump_SuperUpdate().

        private void Idle_EnterState()
        {
            superCharacterController.EnableSlopeLimit();
            superCharacterController.EnableClamping();
            canJump       = true;
            doublejumped  = false;
            canDoubleJump = false;
        }
All Usage Examples Of SuperCharacterController::EnableClamping