Replace UltimateXR with HurricaneVR

This commit is contained in:
2024-08-08 17:01:07 +02:00
parent e8658374d6
commit fb21dbbb73
5932 changed files with 358362 additions and 2174150 deletions

View File

@@ -0,0 +1,29 @@
using TMPro;
using UnityEngine;
namespace HurricaneVR.TechDemo.Scripts
{
public class DemoLeverDisplay : MonoBehaviour
{
private int _step;
private float _angle;
private TextMeshPro _tm;
private void Awake()
{
_tm = GetComponent<TextMeshPro>();
}
public void OnStepChanged(int step)
{
_step = step;
_tm.text = $"{_step}/{_angle:f0}";
}
public void OnAngleChanged(float angle, float delta)
{
_angle = angle;
_tm.text = $"{_step}/{_angle:f0}";
}
}
}