19 lines
242 B
C#
19 lines
242 B
C#
using UnityEngine;
|
|
|
|
public class VRRecenterButton : MonoBehaviour
|
|
{
|
|
public bool ovrRecenter;
|
|
|
|
public void VRRecenter()
|
|
{
|
|
if (ovrRecenter)
|
|
{
|
|
VRManager.Instance.OvrRecenter();
|
|
}
|
|
else
|
|
{
|
|
VRManager.Instance.Recenter();
|
|
}
|
|
}
|
|
}
|