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