mergemilitary/Assets/Scripts/Utils/DelayDestroy.cs

14 lines
237 B
C#
Raw Normal View History

2022-05-23 13:39:59 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DelayDestroy : MonoBehaviour
{
public float Delay;
private void Start()
{
Destroy(gameObject, Delay);
}
}