Insanely huge initial commit

This commit is contained in:
2026-02-21 16:40:15 -08:00
parent 2ba1c94b88
commit ee9aee0a1b
33825 changed files with 5213498 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class TextFadeController : MonoBehaviour
{
[SerializeField] public TextMeshPro text;
[SerializeField] float dieTime = 1.0f;
[SerializeField] public Color baseColor = Color.white;
[HideInInspector] float alpha = 1.0f;
[HideInInspector] float startTime = -1.0f;
private void Awake()
{
startTime = Time.time;
}
// Update is called once per frame
void LateUpdate()
{
alpha = Mathf.Max(0.0f, 1.0f - (Time.time - startTime) / dieTime);
text.color = new Color(baseColor.r, baseColor.g, baseColor.b, alpha);
if (alpha == 0.0f) {
Destroy(gameObject);
}
}
}