mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-31 21:27:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			524 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			524 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| using UnityEngine;
 | |
| using UnityEngine.UI;
 | |
| 
 | |
| public class EventScript : MonoBehaviour
 | |
| {
 | |
|     //[SerializeField] private Text text;
 | |
|     void Start()
 | |
|     {
 | |
|         
 | |
|         Invoke("Delete", 5f);
 | |
|     }
 | |
| 
 | |
|     // Update is called once per frame
 | |
|     void Update()
 | |
|     {
 | |
|         
 | |
|     }
 | |
| 
 | |
|     public void ChangeText(string msg)
 | |
|     {
 | |
|         Text t = GetComponentInChildren<Text>();
 | |
|         t.text = msg;
 | |
|     }
 | |
| 
 | |
|     void Delete()
 | |
|     {
 | |
|         Destroy(this.gameObject);
 | |
|     }
 | |
| }
 | 
