using UnityEngine; public class background_b : MonoBehaviour { public float background_bSpeed; public Renderer backgroundRenderer; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { } // Update is called once per frame void Update() { backgroundRenderer.material.mainTextureOffset += new Vector2(background_bSpeed * Time.deltaTime, 0f); } }