14 lines
288 B
C#
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)];
|
||
|
}
|
||
|
}
|