Пример #1
0
    private void Dash()
    {
        //check if skill on CD
        if (!skills.CheckSkillCD("dash"))
        {
            return;
        }
        float forwardDistance = 10;

        //catch up camera and particle system (don't teleport)

        //teleport player forward (check for collision?)
        Vector3 newLocation = transform.position + transform.forward * forwardDistance;

        transform.position = newLocation;
    }