PlaneRun/Assets/Scripts/adsLeftText.cs

18 lines
329 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class adsLeftText : MonoBehaviour
{
public string txt;
public TMP_Text text;
// Start is called before the first frame update
void Update()
{
text.text = txt;
Destroy(gameObject, 2f);
}
}