Galaxy Generator

This commit is contained in:
mkadou
2023-06-05 15:34:37 +02:00
parent ec4cda81e9
commit 3db8cc2930
195 changed files with 47018 additions and 0 deletions

22
Assets/Galaxy/Galaxy.cs Normal file
View File

@@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Galaxy : MonoBehaviour
{
[SerializeField] private RawImage _img;
[SerializeField] private float _x, _y;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
_img.uvRect = new Rect(_img.uvRect.position + new Vector2(_x, _y) * Time.deltaTime, _img.uvRect.size);
}
}