Reworked Socket + EndPos reset

This commit is contained in:
FreshMix committed 2025-12-19 14:00:22 +03:00
1 parent 085d330a87
commit 430f676e49
151 files changed
+18194 -18446

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Interactables;
public class BoardScript : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
private int mask;
void Start()
{
mask = InteractionLayerMask.GetMask("Default", "Board");
}
// Update is called once per frame
void Update()
{
}
public void ComponentsPlaced()
{
gameObject.GetComponent<XRGrabInteractable>().interactionLayers = mask;
}
}