public void EnableSlopeLimit()
{
slopeLimiting = true;
}
// 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; }