上传修改
This commit is contained in:
@@ -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