mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-13 23:36:35 +08:00
2018 support test
This commit is contained in:
@ -6,6 +6,7 @@ using System.Text;
|
||||
using UnityEngine;
|
||||
using MelonLoader;
|
||||
using UnhollowerBaseLib;
|
||||
using Harmony;
|
||||
|
||||
namespace Explorer
|
||||
{
|
||||
@ -61,13 +62,11 @@ namespace Explorer
|
||||
new MainMenu();
|
||||
new WindowManager();
|
||||
|
||||
//var harmony = HarmonyInstance.Create(ID);
|
||||
//harmony.PatchAll();
|
||||
|
||||
// done init
|
||||
ShowMenu = true;
|
||||
}
|
||||
|
||||
// On scene change
|
||||
public override void OnLevelWasLoaded(int level)
|
||||
{
|
||||
if (ScenePage.Instance != null)
|
||||
@ -77,6 +76,7 @@ namespace Explorer
|
||||
}
|
||||
}
|
||||
|
||||
// Update
|
||||
public override void OnUpdate()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.F7))
|
||||
@ -86,6 +86,12 @@ namespace Explorer
|
||||
|
||||
if (ShowMenu)
|
||||
{
|
||||
if (!Cursor.visible)
|
||||
{
|
||||
Cursor.visible = true;
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
}
|
||||
|
||||
MainMenu.Instance.Update();
|
||||
WindowManager.Instance.Update();
|
||||
|
||||
|
Reference in New Issue
Block a user