This commit is contained in:
maxmain1 committed 2025-09-30 11:28:39 +03:00
1 parent 75fa7ab38c
commit c9424320ae
1425 files changed
+484748 -5

No files matched your search

@@ -0,0 +1,19 @@
using UnityEngine;
namespace Unity.VRTemplate
{
/// <summary>
/// Destroys GameObject after a few seconds.
/// </summary>
public class DestroyObject : MonoBehaviour
{
[SerializeField]
[Tooltip("Time before destroying in seconds.")]
float m_Lifetime = 5f;
void Start()
{
Destroy(gameObject, m_Lifetime);
}
}
}