2024-01-28 14:09:28 +00:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using TMPro;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class FunnyText : MonoBehaviour
|
|
|
|
{
|
2024-01-29 21:17:14 +00:00
|
|
|
public FunnyTextList textList;
|
2024-01-28 21:42:02 +00:00
|
|
|
private void OnEnable()
|
2024-01-28 14:09:28 +00:00
|
|
|
{
|
2024-01-29 21:17:14 +00:00
|
|
|
GetComponent<TextMeshProUGUI>().text = textList.funnyList[Random.Range(0, textList.funnyList.Count)];
|
2024-01-28 14:09:28 +00:00
|
|
|
}
|
|
|
|
}
|