private void Update() { if (!hasLoaded && gameStarter.HasLoaded) { hasLoaded = true; var arenaDimensions = gameStarter.GetArenaDimensions(); spawnAreaHeight = arenaDimensions.y * .6f; spawnAreaWidth = arenaDimensions.x * .6f; for (var x = 0; x < spawnAreaWidth; x++) { for (var z = 0; z < spawnAreaHeight; z++) { var randomValue = EaseInOutCirc(0, 1, Random.value); if (randomValue < .7f && randomValue > .3f) { Spawn(GetRandomBlock(), x, z); } } } } }