提交场景跳转,修复360视频播放,更新场景播放效果

This commit is contained in:
YXY
2026-03-04 16:43:41 +08:00
parent fa11027511
commit 11c7871553
88 changed files with 10632 additions and 4945 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit;
using UnityEngine.XR.Interaction.Toolkit.Interactors;
public class HideHandOnGrab : MonoBehaviour
{
[SerializeField] XRBaseInteractor interactor;
[SerializeField] GameObject handModel;
void OnEnable()
{
interactor.selectEntered.AddListener(_ => handModel.SetActive(false));
interactor.selectExited.AddListener(_ => handModel.SetActive(true));
}
void OnDisable()
{
interactor.selectEntered.RemoveAllListeners();
interactor.selectExited.RemoveAllListeners();
}
}