9 lines
228 B
C#
9 lines
228 B
C#
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);
|
|
}
|
|
}
|