Replace UltimateXR with HurricaneVR
This commit is contained in:
35
Assets/HurricaneVR/Framework/Editor/HVREditorManager.cs
Normal file
35
Assets/HurricaneVR/Framework/Editor/HVREditorManager.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using HurricaneVR.Framework.Core;
|
||||
using HurricaneVR.Framework.Shared;
|
||||
using HurricaneVR.Framework.Shared.Utilities;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace HurricaneVR.Editor
|
||||
{
|
||||
public class HVREditorManager
|
||||
{
|
||||
private const string HurricaneVRUploader = "HurricaneVRUploader";
|
||||
public const string Version = "2.9.2";
|
||||
|
||||
[InitializeOnLoadMethod]
|
||||
private static void Hook()
|
||||
{
|
||||
EditorApplication.delayCall += CheckUpdate;
|
||||
}
|
||||
|
||||
|
||||
private static void CheckUpdate()
|
||||
{
|
||||
if (Application.productName != HurricaneVRUploader)
|
||||
{
|
||||
var kickit = HVRSettings.Instance;
|
||||
|
||||
if (HVREditorPreferences.UpdateDisplayedVersion != Version)
|
||||
{
|
||||
HVREditorPreferences.UpdateDisplayedVersion = Version;
|
||||
HVRSetupWindow.ShowWindow();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user