using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BackgroundMove : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
//背景移动
transform.Translate(Vector2.down * 0.09f);
if (transform.position.y < -9.9f) {
transform.position = new Vector3(0,9.9f,0);
}
}
}