void SpawnHorizontalLine() { HorizontalLine newHorizontalLine = Instantiate(_horizontalLinePrefab, new Vector3(transform.position.x, _ySpawnPosition, 0), transform.rotation); newHorizontalLine.Init(_horizontalLineAcceleration, _horizontalLineBeginningSpeed); }