修复报错

This commit is contained in:
Sora丶kong
2026-03-03 11:32:30 +08:00
parent 82130f6146
commit 2f0862b382
10 changed files with 125 additions and 81 deletions

View File

@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using Unity.XR.PXR;
using UnityEngine;
using UnityEngine.XR;
@@ -9,26 +8,10 @@ public class HandTakeObj : MonoBehaviour
{
bool isEnterObj;
Transform goodTran;
//public PXR_Input.Controller hand;
XRNode xrNode;
public XRNode xrNode = XRNode.LeftHand;
public Transform goodParent;
Good good;
void Start()
{
switch (hand)
{
case PXR_Input.Controller.LeftController:
xrNode = XRNode.LeftHand;
break;
case PXR_Input.Controller.RightController:
xrNode = XRNode.RightHand;
break;
default:
break;
}
}
void Update()
{
if (isEnterObj)