// Start is called before the first frame update
    void Start()
    {
        var player = FindObjectOfType <PlayerController>();

        if (player != null)
        {
            screenBounds = player.ScreenboundsVert(transform.localScale.y);
        }

        speed = Mathf.Lerp(speedMinMax.x, speedMinMax.y, Dificullty.GetDificultyPercnt());
        //print($" every time on start : {speed}");
    }
    // Update is called once per frame
    void Update()
    {
        Vector2 spawnPosition  = new Vector2(Random.Range(-ScreenSizeWorldUnits.x, ScreenSizeWorldUnits.x), ScreenSizeWorldUnits.y);
        float   randomRotation = Random.Range(-fBRotationValueFactor, fBRotationValueFactor);
        float   randomScale    = Random.Range(fBScaleValueFactor / 2, fBScaleValueFactor);

        if (Time.time > nextSpwntime)
        {
            float secondsBetweenSpawns = Mathf.Lerp(SecondsBetweenSpawnMinMax.y, SecondsBetweenSpawnMinMax.x,
                                                    Dificullty.GetDificultyPercnt());
            nextSpwntime = Time.time + secondsBetweenSpawns;
            var block = Instantiate(fallingBlock, spawnPosition, Quaternion.Euler(0, 0, randomRotation));
            block.transform.localScale = new Vector3(randomScale, randomScale, randomScale);
            block.transform.parent     = transform;

            Renderer material = block.GetComponent <Renderer>();
            material.material.color = Color.blue;

            //print(Mathf.Clamp01(Time.time / 60));
        }
    }