12345678910111213141516171819 |
- using UnityEngine;
- using UnityEngine.UI;
- using System.Collections;
- public class BottomTip : MonoBehaviour {
- public Text textUI;
- public Animator animator;
- public void Show(string txt, bool newOne=true)
- {
- textUI.text = txt;
- if(newOne)
- animator.Play("BottomTipShow", 0, 0);
- else
- animator.Play("BottomTipChange", 0, 0);
- }
-
- }
|