上传修改
This commit is contained in:
@@ -9,7 +9,7 @@ public class HandTakeObj : MonoBehaviour
|
||||
{
|
||||
bool isEnterObj;
|
||||
Transform goodTran;
|
||||
public PXR_Input.Controller hand;
|
||||
//public PXR_Input.Controller hand;
|
||||
XRNode xrNode;
|
||||
public Transform goodParent;
|
||||
Good good;
|
||||
@@ -54,7 +54,7 @@ public class HandTakeObj : MonoBehaviour
|
||||
{
|
||||
if (goodTran == null && other.gameObject.layer == 6)
|
||||
{
|
||||
// 通过不断查找父物体,直到没有父物体为止,获取最上层父物体
|
||||
// ͨ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϲ<EFBFBD><EFBFBD>Ҹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>壬ֱ<EFBFBD><EFBFBD>û<EFBFBD>и<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊֹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD>ϲ㸸<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
goodTran = other.transform;
|
||||
while (goodTran.parent != goodParent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user