Snaparazzi/Assets/Scripts/FunnyText.cs
2024-01-28 15:09:28 +01:00

14 lines
288 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class FunnyText : MonoBehaviour
{
public List<string> texts;
private void Start()
{
GetComponent<TextMeshProUGUI>().text = texts[Random.Range(0, texts.Count)];
}
}