mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-23 00:52:31 +08:00

* Project renamed to Explorer to reflect the new scope * Merged Mono and Il2Cpp builds * Merged BepInEx and MelonLoader builds * Some minor changes to accommodate for this * The release DLL and the config file now use "Explorer" in place of "CppExplorer" for file and folder names
37 lines
694 B
C#
37 lines
694 B
C#
#if ML
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using MelonLoader;
|
|
|
|
namespace Explorer
|
|
{
|
|
public class Explorer_MelonMod : MelonMod
|
|
{
|
|
public static Explorer_MelonMod Instance;
|
|
|
|
public override void OnApplicationStart()
|
|
{
|
|
Instance = this;
|
|
|
|
new ExplorerCore();
|
|
}
|
|
|
|
public override void OnLevelWasLoaded(int level)
|
|
{
|
|
ExplorerCore.OnSceneChange();
|
|
}
|
|
|
|
public override void OnUpdate()
|
|
{
|
|
ExplorerCore.Update();
|
|
}
|
|
|
|
public override void OnGUI()
|
|
{
|
|
ExplorerCore.OnGUI();
|
|
}
|
|
}
|
|
}
|
|
#endif |