17 lines
256 B
C#
17 lines
256 B
C#
using UnityEngine;
|
|
|
|
public class VRTurnOffCollider : MonoBehaviour
|
|
{
|
|
private void Start()
|
|
{
|
|
if (VRManager.IsVROn())
|
|
{
|
|
MeshCollider component = GetComponent<MeshCollider>();
|
|
if ((bool)component)
|
|
{
|
|
component.enabled = false;
|
|
}
|
|
}
|
|
}
|
|
}
|