Exemple #1
0
    void JumpUpdate()
    {
        if (Input.GetButtonDown("Jump") && jumpdoubletap)
        {
            //BD
            playermovement.BoostDash();
            Debug.Log("BD");
        }
        if (Input.GetButton("Jump") && !jumpdoubletap)
        {
            isjumping     = true;
            jumpdoubletap = true;
            //Jump
            StartCoroutine(DoubleTapCountDown());
        }

        if (Input.GetButtonUp("Jump"))
        {
            isjumping = false;
        }
    }