void Start() { minY = minHeightPoint.position.y; maxY = maxHeightPoint.position.y; groundWidths = new float[groundPoolers.Length]; for (int i = 0; i < groundPoolers.Length; i++) { groundWidths[i] = groundPoolers[i].pooledObject.GetComponent <BoxCollider2D>().size.x; } coinGenerator = FindObjectOfType <CoinsGenerator>(); }