12 lines
227 B
C#
12 lines
227 B
C#
![]() |
using UnityEngine;
|
||
|
|
||
|
public class CameraScroller : MonoBehaviour
|
||
|
{
|
||
|
public float scrollSpeed = 2f; // Units per second
|
||
|
|
||
|
void Update()
|
||
|
{
|
||
|
transform.position += Vector3.up * scrollSpeed * Time.deltaTime;
|
||
|
}
|
||
|
}
|