feat: Introduce DownCount feature with new models, scripts, textures, and a dedicated quiz scene.

This commit is contained in:
2025-12-02 01:49:24 +00:00
parent 783affaff1
commit d3deec95c8
207 changed files with 74901 additions and 762 deletions

View File

@@ -0,0 +1,46 @@

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
public class LetterCard : UdonSharpBehaviour
{
public TMPro.TextMeshProUGUI letterText;
[UdonSynced] public string currentLetter;
[HideInInspector] public LetterPoint currentPoint;
public override void OnDrop()
{
if (currentPoint != null)
{
currentPoint.OnCardReleased(this);
}
}
public override void OnPickup()
{
if (currentPoint != null)
{
currentPoint.OnCardRemoved(this);
}
}
public void SetLetter(string letter)
{
this.currentLetter = letter;
if (letterText != null)
{
letterText.text = currentLetter;
}
}
public override void OnDeserialization()
{
if (letterText != null)
{
letterText.text = currentLetter;
}
}
}