修复报错
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user