no message

This commit is contained in:
2025-09-23 10:38:30 +02:00
parent 17158e2347
commit 45fc820405
15 changed files with 1330 additions and 9 deletions

View File

@@ -0,0 +1,31 @@
using UnityEngine;
using UnityEngine.SceneManagement;
public class CreditsScript : MonoBehaviour
{
public float scrollSpeed = 20f;
private RectTransform rectTransform;
void Start()
{
rectTransform = GetComponent<RectTransform>();
}
void Update()
{
rectTransform.anchoredPosition += new Vector2(0, scrollSpeed * Time.deltaTime);
if (Input.GetKeyDown(KeyCode.KeypadEnter))
{
SceneManager.LoadSceneAsync(0);
}
if (Input.GetKeyDown(KeyCode.Space))
{
scrollSpeed += 100;
}
}
}