bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/MenuCameraScroller.cs

10 lines
228 B
C#
Raw Normal View History

2024-02-24 22:40:44 -05:00
using UnityEngine;
public class MenuCameraScroller : MonoBehaviour
{
private void Update()
{
base.transform.position = new Vector3(Mathf.PingPong(Time.time, 14f), base.transform.position.y, base.transform.position.z);
}
}