26 lines
		
	
	
		
			440 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			440 B
		
	
	
	
		
			C#
		
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| using UnityEngine.PlayerLoop;
 | |
| using UnityEngine.UI;
 | |
| 
 | |
| public class Prompttext : MonoBehaviour
 | |
| {
 | |
|     [SerializeField] Text tips_txt;
 | |
|     void Start()
 | |
|     {
 | |
|         
 | |
|     }
 | |
|     void Update()
 | |
|     {
 | |
|         if (tips_txt.text.Length >= 1)
 | |
|         {
 | |
|             Invoke("Tipstxt", 1.5f);
 | |
|         }
 | |
|     }
 | |
|     void Tipstxt()
 | |
|     {
 | |
|         tips_txt.text = null;
 | |
|     }
 | |
| }
 |