mirror of
https://udrimavric.com/MAVRIC/Stratasys-450mc-VR.git
synced 2025-01-23 15:48:33 -05:00
18 lines
393 B
C#
18 lines
393 B
C#
|
namespace UnityEngine.XR.Content.Interaction
|
||
|
{
|
||
|
/// <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);
|
||
|
}
|
||
|
}
|
||
|
}
|