10 lines
213 B
C#
10 lines
213 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class DestroyAfterTime : MonoBehaviour
|
|
{
|
|
[SerializeField] float Time;
|
|
void Start() => Destroy(gameObject, Time);
|
|
}
|