Exemple #1
0
 /// <summary>
 /// Stops the VR mode.
 /// </summary>
 public void StopVrMode()
 {
     if (VrManager.Instance.TimeWarp)
     {
         this.vrMode = false;
         NativePluginEvents.IssuePluginEvent(PluginEvents.Pause);
     }
 }
Exemple #2
0
 /// <summary>
 /// Starts the VR mode.
 /// </summary>
 public void StartVrMode()
 {
     if (VrManager.Instance.TimeWarp)
     {
         this.vrMode = true;
         NativePluginEvents.IssuePluginEvent(PluginEvents.Resume);
     }
 }
Exemple #3
0
        /// <summary>
        /// Goes the global menu.
        /// </summary>
        public void GoGlobalMenu()
        {
            if (this.OnGlobalMenu != null)
            {
                this.OnGlobalMenu();
            }

            NativePluginEvents.IssuePluginEvent(PluginEvents.OpenGMenu);
        }
Exemple #4
0
        /// <summary>
        /// Called when [application quit].
        /// </summary>
        private void OnApplicationQuit()
        {
            Debug.Log("OnApplicationQuit");

            NativePluginEvents.IssuePluginEvent(PluginEvents.QuitRenderThread);
        }
Exemple #5
0
 /// <summary>
 /// Initializes the render thread.
 /// </summary>
 public void InitRenderThread()
 {
     NativePluginEvents.IssuePluginEvent(PluginEvents.InitRenderThread);
 }
Exemple #6
0
 /// <summary>
 /// Platforms the UI global menu.
 /// </summary>
 public void PlatformUiGlobalMenu()
 {
     NativePluginEvents.IssuePluginEvent(PluginEvents.PlatformUI);
 }
Exemple #7
0
 /// <summary>
 /// Platforms the UI confirm quit.
 /// </summary>
 public void PlatformUiConfirmQuit()
 {
     NativePluginEvents.IssuePluginEvent(PluginEvents.PlatformUIConfirmQuit);
 }