You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
411 B
22 lines
411 B
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<Text>();
|
|
}
|
|
private void OnEnable()
|
|
{
|
|
myText.text = "";
|
|
myText.DOText(str, time);
|
|
}
|
|
}
|