Звук машин

This commit is contained in:
2025-01-25 16:18:02 +03:00
parent d9b9d51430
commit b194dc0191
18 changed files with 419 additions and 41 deletions

View File

@ -0,0 +1,33 @@
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Filtering;
public class ActivateUILineScript : MonoBehaviour
{
// Start is called before the first frame update
private XRInteractorLineVisual line;
private void Start()
{
line = GetComponent<XRInteractorLineVisual>();
if (line == null )
{
Debug.Log("XRInteractorLineVisual is empty");
}
}
public void OnPointerEnter()
{
line.enabled = true;
//Debug.Log("Point enter");
}
public void OnPointerExit()
{
line.enabled = false;
//Debug.Log("Point exit");
// Например, убрать подсветку
}
}