private double GetRandomGen() { BetterRandom random = new BetterRandom(); return(random.Range(genMin, genMax)); //return Random.Range(genMin, genMax); }
// Update is called once per frame void FixedUpdate() { timeSinceLastSpawned += Time.deltaTime; if (!GameController.instance.gameOver && timeSinceLastSpawned >= spawnRate) { timeSinceLastSpawned = 0; float spawnYPosition = (float)betterRandom.Range(columnMin, columnMax); //Random.Range(columnMin, columnMax); columns[currentColumn].transform.position = new Vector2(spawnXPosition, spawnYPosition); currentColumn++; if (currentColumn > 6) { currentColumn = 0; } } }