Replace UltimateXR with HurricaneVR
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace HurricaneVR.Framework.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Destroys this game object after a timeout
|
||||
/// </summary>
|
||||
public class HVRDestroyTimer : MonoBehaviour
|
||||
{
|
||||
public void StartTimer(float timeout)
|
||||
{
|
||||
StartCoroutine(Cleanup(timeout));
|
||||
}
|
||||
|
||||
private IEnumerator Cleanup(float timeout)
|
||||
{
|
||||
yield return new WaitForSeconds(timeout);
|
||||
Destroy(this.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user