Snaparazzi/Assets/Scripts/FunnyText.cs

14 lines
288 B
C#
Raw Normal View History

2024-01-28 14:09:28 +00:00
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)];
}
}