Files
VIVE-OpenXR-Unity/com.htc.upm.vive.openxr/OpenXRSceneUnderstanding/Samples~/DestrySelf.cs
2023-06-15 10:10:25 +08:00

20 lines
364 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestrySelf : MonoBehaviour
{
public float LifeTime = 5f;
// Start is called before the first frame update
void Start()
{
Destroy(this.gameObject, LifeTime);
}
// Update is called once per frame
void Update()
{
}
}