SuperCharacterController.EnableSlopeLimit C# (CSharp) Method

EnableSlopeLimit() public method

public EnableSlopeLimit ( ) : void
return void
    public void EnableSlopeLimit()
    {
        slopeLimiting = 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::EnableSlopeLimit