Snaparazzi/Assets/Scripts/FunnyText.cs
2024-01-28 22:42:02 +01:00

14 lines
291 B
C#

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