IEnumerator SpawnBG()
{
while (true)
{
Instantiate(background, new Vector3(0f, 11f, 0f), Quaternion.identity);
yield return new WaitForSeconds(1.5f);
}
}
void Update()
{
background.transform.position += new Vector3(0f, -10f, 0f) * Time.deltaTime;
}