Update to Berry Dash 1.8.2!

This commit is contained in:
Lncvrt committed 2025-10-29 18:15:09 -07:00
1 parent a2d664febd
commit 5f774a4837
140 files changed
+32883 -3840

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
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);
}
}