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,30 @@
using HurricaneVR.Framework.Core;
using HurricaneVR.Framework.Core.Grabbers;
using HurricaneVR.Framework.Shared;
using UnityEngine;
namespace HurricaneVR.Framework.ControllerInput
{
[RequireComponent(typeof(HVRGrabbable))]
public abstract class HVRInputAction : MonoBehaviour
{
public HVRGrabbable Grabbable { get; private set; }
protected virtual void Awake()
{
Grabbable = GetComponent<HVRGrabbable>();
}
public void Update()
{
for (var i = 0; i < Grabbable.HandGrabbers.Count; i++)
{
var hand = Grabbable.HandGrabbers[i];
var controller = HVRInputManager.Instance.GetController(hand.HandSide);
CheckInput(controller);
}
}
protected abstract void CheckInput(HVRController controller);
}
}