hra vertical bird

This commit is contained in:
2026-06-03 11:03:32 +02:00
parent fdc14a4288
commit 942a882cdb
25 changed files with 3697 additions and 1033 deletions

View File

@@ -0,0 +1,21 @@
using UnityEngine;
public class MoveDown : MonoBehaviour
{
public float speed = 200f;
public float stopY = -6315.304f;
private RectTransform rectTransform;
void Start()
{
rectTransform = GetComponent<RectTransform>();
}
void Update()
{
if (rectTransform.anchoredPosition.y >= stopY)
{
rectTransform.anchoredPosition += Vector2.down * speed * Time.deltaTime;
}
}
}