using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; using UnityEngine.UI; public class Tip : MonoBehaviour { public float time; [TextArea] public string str; Text myText; private void Awake() { myText = GetComponent(); } private void OnEnable() { myText.text = ""; myText.DOText(str, time); } }