CapersProject/Assets/AllIn1VfxToolkit/Demo & Assets/Demo/Scripts/AllIn1VfxAutoDestroy.cs

14 lines
285 B
C#
Raw Normal View History

2025-02-10 05:47:48 +00:00
using UnityEngine;
namespace AllIn1VfxToolkit.Demo.Scripts
{
public class AllIn1VfxAutoDestroy : MonoBehaviour
{
[SerializeField] private float destroyTime = 1f;
private void Start()
{
Destroy(gameObject, destroyTime);
}
}
}