Exemplo n.º 1
0
    public void OnDash()
    {
        if (canDash)
        {
            return;
        }
        timeSinceLastDash = 0;
        jq.PlayDash();

        rbd.AddForce(movement * dashDistance, ForceMode.Impulse);
        dashing = true;
        StartCoroutine(StopDashing());
    }