CoronaRun/Assets/Scenes/scripts/background_b.cs
2025-01-19 22:16:28 +05:30

19 lines
460 B
C#

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);
}
}