上传修改
This commit is contained in:
@@ -9,7 +9,7 @@ public class PXR_PicoHandPinchGesture : PicoHandDeviceDoEvent
|
||||
|
||||
public bool AimRayTouched { get => aimRayTouched; set => aimRayTouched = value; }
|
||||
private bool pinch = false;
|
||||
private HandAimState aimState = new HandAimState();
|
||||
//private HandAimState aimState = new HandAimState();
|
||||
public float PinchStrength { get; private set; }
|
||||
|
||||
public bool Pinch
|
||||
|
||||
@@ -7,14 +7,15 @@ using UnityEngine.InputSystem.LowLevel;
|
||||
|
||||
public class PicoHandDeviceDoEvent : MonoBehaviour
|
||||
{
|
||||
public HandType handType;
|
||||
//public HandType handType;
|
||||
CustomPicoHandDevice controller;
|
||||
// Start is called before the first frame update
|
||||
private void Start()
|
||||
{
|
||||
string hand_name = handType == HandType.HandLeft ? "LeftHand" : "RightHand";
|
||||
controller = InputSystem.AddDevice<CustomPicoHandDevice>();
|
||||
InputSystem.SetDeviceUsage(controller, hand_name);
|
||||
//Sora: 注释
|
||||
// string hand_name = handType == HandType.HandLeft ? "LeftHand" : "RightHand";
|
||||
// controller = InputSystem.AddDevice<CustomPicoHandDevice>();
|
||||
// InputSystem.SetDeviceUsage(controller, hand_name);
|
||||
}
|
||||
|
||||
public void GripOn()
|
||||
|
||||
Reference in New Issue
Block a user