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;
|
2024-01-28 21:42:02 +00:00
|
|
|
private void OnEnable()
|
2024-01-28 14:09:28 +00:00
|
|
|
{
|
|
|
|
GetComponent<TextMeshProUGUI>().text = texts[Random.Range(0, texts.Count)];
|
|
|
|
}
|
|
|
|
}
|