EnableSlopeLimit() public method

public EnableSlopeLimit ( ) : void
return void
Esempio 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;
        }
    /*void Update () {
     * Update is normally run once on every frame update. We won't be using it
     * in this case, since the SuperCharacterController component sends a callback Update
     * called SuperUpdate. SuperUpdate is recieved by the SuperStateMachine, and then fires
     * further callbacks depending on the state
     * }*/

    // Below are the three 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()
    void Idle_EnterState()
    {
        controller.EnableSlopeLimit();
        controller.EnableClamping();

        jumpCount = 0;
    }
    /*void Update () {
     * Update is normally run once on every frame update. We won't be using it
     * in this case, since the SuperCharacterController component sends a callback Update
     * called SuperUpdate. SuperUpdate is recieved by the SuperStateMachine, and then fires
     * further callbacks depending on the state
     *  }*/
    #endregion

    #region Character states functions
    // Below are the three 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()
    void Idle_EnterState()
    {
        controller.EnableSlopeLimit();
        controller.EnableClamping();
        isDashJump   = false;
        airMoveCount = 0;
    }
Esempio n. 4
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;
     animator.SetInteger("Jumping", 0);
     animator.SetBool("Moving", false);
 }
Esempio n. 5
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()
 void Idle_EnterState()
 {
     superCharacterController.EnableSlopeLimit();
     superCharacterController.EnableClamping();
     canJump       = true;
     doublejumped  = false;
     canDoubleJump = false;
     animator.SetInteger("Jumping", 0);
 }
    /*void Update () {
     * Update is normally run once on every frame update. We won't be using it
     * in this case, since the SuperCharacterController component sends a callback Update
     * called SuperUpdate. SuperUpdate is recieved by the SuperStateMachine, and then fires
     * further callbacks depending on the state
     *  }*/

    // Below are the three 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()
    void Idle_EnterState()
    {
        anim.SetBool("Jump", false);
        controller.EnableSlopeLimit();
        controller.EnableClamping();
    }
Esempio n. 7
0
    /*void Update () {
     * Update is normally run once on every frame update. We won't be using it
     * in this case, since the SuperCharacterController component sends a callback Update
     * called SuperUpdate. SuperUpdate is recieved by the SuperStateMachine, and then fires
     * further callbacks depending on the state.
     * }*/

    // Below are the three 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()
    {
        controller.EnableSlopeLimit();
        controller.EnableClamping();
    }
Esempio n. 8
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;
        }
Esempio n. 9
0
    // Below are the three 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()

    /// <summary>
    /// Idle
    /// </summary>

    void Idle_EnterState()
    {
        controller.EnableSlopeLimit();
        controller.EnableClamping();
        doubleJump = false;
    }
    /*void Update () {
     * Update is normally run once on every frame update. We won't be using it
     * in this case, since the SuperCharacterController component sends a callback Update
     * called SuperUpdate. SuperUpdate is recieved by the SuperStateMachine, and then fires
     * further callbacks depending on the state
     * }*/

    // Below are 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()

    void Idle_EnterState()
    {
        timeInCurrentState = 0;
        controller.EnableSlopeLimit();
        controller.DisableClamping();
    }
Esempio n. 11
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()
 void Idle_EnterState()
 {
     superCharacterController.EnableSlopeLimit();
     superCharacterController.EnableClamping();
 }