Files
2026-06-04 21:37:43 +03:00

15 lines
264 B
C#

using UnityEngine;
namespace OTG.Lab06.Effects
{
public sealed class SelfDestruct : MonoBehaviour
{
[SerializeField] private float lifetime = 1f;
private void Start()
{
Destroy(gameObject, lifetime);
}
}
}