2018 support test

This commit is contained in:
sinaioutlander
2020-08-12 03:51:47 +10:00
parent 0b78b4398f
commit 2ba6f27a27
18 changed files with 3372 additions and 9 deletions

View File

@ -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();