ClientServer/Client/Assets/Scripts/Util/DestroyAfterTime.cs

10 lines
213 B
C#
Raw Normal View History

2025-09-06 17:17:39 +04:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroyAfterTime : MonoBehaviour
{
[SerializeField] float Time;
void Start() => Destroy(gameObject, Time);
}