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.
34 lines
629 B
34 lines
629 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
using DG.Tweening;
|
|
|
|
public class DialogTip : MonoBehaviour
|
|
{
|
|
|
|
|
|
|
|
// Start is called before the first frame update
|
|
void Awake()
|
|
{
|
|
this.transform.localScale = new Vector3(1, 0, 1);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 显示
|
|
/// </summary>
|
|
/// <param name="finish"></param>
|
|
/// <returns></returns>
|
|
public IEnumerator OnShow()
|
|
{
|
|
this.transform.DOScale(new Vector3(1,1,1),0.25f);
|
|
yield return new WaitForSeconds(3.0f);
|
|
this.transform.DOScale(new Vector3(1,0,1),0.25f);
|
|
|
|
}
|
|
|
|
|
|
}
|