14 lines
		
	
	
		
			237 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			237 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System.Collections; | |||
|  | using System.Collections.Generic; | |||
|  | using UnityEngine; | |||
|  | 
 | |||
|  | public class DelayDestroy : MonoBehaviour | |||
|  | { | |||
|  |     public float Delay; | |||
|  | 
 | |||
|  |     private void Start() | |||
|  |     { | |||
|  |         Destroy(gameObject, Delay); | |||
|  |     } | |||
|  | } |