Files
PrinceOfGlory/Packages/com.htc.upm.vive.openxr/Samples~/Samples/Samples/SceneUnderstanding/DestrySelf.cs
2026-03-03 03:15:46 +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()
{
}
}