This commit is contained in:
2026-01-06 17:47:11 +01:00
commit 8423e2b790
1313 changed files with 295355 additions and 0 deletions

View File

@@ -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);
}
}
}