14 lines
No EOL
290 B
C#
14 lines
No EOL
290 B
C#
using UnityEngine;
|
|
|
|
namespace Unity.XR.Oculus
|
|
{
|
|
internal static class OculusSession
|
|
{
|
|
public static void Update()
|
|
{
|
|
if (NativeMethods.GetShouldRestartSession()) {
|
|
OculusRestarter.Instance.PauseAndRestart();
|
|
}
|
|
}
|
|
}
|
|
} |