Cooker + New Model (textures) + Reels moving
This commit is contained in:
1 parent
3a94e032c9
commit
7de0125751
78 files changed
+154076
-31185
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user