using UnityEngine; public class CreditsScroller : MonoBehaviour { public float scrollSpeed = 50f; public float startY = -500f; private RectTransform rectTransform; private void Awake() { rectTransform = GetComponent(); } private void OnEnable() { // Reiniciar posici n rectTransform.anchoredPosition = new Vector2(0, startY); } private void Update() { rectTransform.anchoredPosition += Vector2.up * scrollSpeed * Time.deltaTime; } }