initial
This commit is contained in:
1 parent
75fa7ab38c
commit
c9424320ae
1425 files changed
+484748
-5
No files matched your search
@@ -0,0 +1,30 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.XR.Interaction.Toolkit.Interactors;
|
||||
|
||||
public class MaterialSocketChecker : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void test(XRSocketInteractor interactor) {
|
||||
Debug.Log(interactor.interactablesHovered[0].transform.gameObject.name + " " + (interactor.interactablesHovered[0].transform.gameObject.name == "1").ToString());
|
||||
if (
|
||||
interactor.interactablesHovered[0].transform.gameObject.name == "1")
|
||||
{
|
||||
interactor.socketActive = true;
|
||||
}
|
||||
else {
|
||||
interactor.interactionManager.SelectExit(interactor, interactor.interactablesSelected[0]);
|
||||
interactor.socketActive = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user