Move files around so it's easier to navigate the scripts folder

This commit is contained in:
Lncvrt committed 2026-02-21 20:47:43 -07:00
1 parent f7846209ff
commit 3e9ea36fa9
50 files changed

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
using TMPro;
using UnityEngine;
public class RainbowText : MonoBehaviour {
public float frequency = 1f;
private TMP_Text targetImage;
void Awake() {
targetImage = gameObject.GetComponent<TMP_Text>();
}
void Update() {
float t = Time.time * frequency;
float r = Mathf.Sin(t) * 0.5f + 0.5f;
float g = Mathf.Sin(t + 2f) * 0.5f + 0.5f;
float b = Mathf.Sin(t + 4f) * 0.5f + 0.5f;
targetImage.color = new Color(r, g, b);
}
}