Ejemplo n.º 1
0
    private void Update()
    {
        if (NInput.TouchBegan())
        {
            Joystick.SetPivot();
            PlayerPos = Rb.position;
            Input     = true;
        }

        CarManager.CountFlips();

        if (NInput.TouchEnded())
        {
            Input = false;
        }

        UIManager.Progress(transform.position.z / LevelGenerator.path.end.z);
    }