public static Dictionary <int, float> RandomFixedXS(int min, int max)
    {
        var result    = new Dictionary <int, float>();
        var indexList = RandomFixedIndexes(min, max);

        foreach (var index in indexList)
        {
            var x = Constant.FIXED_XS[index];
            result[index] = ScreenAdapter.AdaptScreenX(x);
        }
        return(result);
    }
    public static void Setup()
    {
        LeftRoadX   = ScreenAdapter.AdaptScreenX(Constant.LEFT_ROAD_X);
        RightRoadX  = ScreenAdapter.AdaptScreenX(Constant.RIGHT_ROAD_X);
        BottomRoadY = ScreenAdapter.AdaptScreenY(Constant.BOTTOM_ROAD_Y);
        TopRoadY    = ScreenAdapter.AdaptScreenY(Constant.TOP_ROAD_Y);

        GapDistance = ScreenAdapter.AdaptScreenHeight(Constant.GAP_DISTANCE);
        GapDuration = Constant.GAP_DURATION;
        AIDistance  = ScreenAdapter.AdaptScreenHeight(Constant.AI_DISTANCE);

        StaticYps  = ScreenAdapter.AdaptScreenHeight(Constant.STATIC_YPS);
        BarrierYps = ScreenAdapter.AdaptScreenHeight(Constant.BARRIER_YPS);

        PixelsPerMeter = ScreenAdapter.AdaptScreenHeight(Constant.PIXELS_PER_METER);
    }
    public static float IndexFixedXS(int index)
    {
        var x = Constant.FIXED_XS[index];

        return(ScreenAdapter.AdaptScreenX(x));
    }