using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; #if CPP using UnhollowerRuntimeLib; #endif namespace UnityExplorer { public class ExplorerBehaviour : MonoBehaviour { internal static ExplorerBehaviour Instance { get; private set; } #if CPP public ExplorerBehaviour(IntPtr ptr) : base(ptr) { } #endif internal static void Setup() { #if CPP ClassInjector.RegisterTypeInIl2Cpp(); #endif GameObject obj = new("ExplorerBehaviour"); DontDestroyOnLoad(obj); obj.hideFlags = HideFlags.HideAndDontSave; Instance = obj.AddComponent(); } internal void Update() { ExplorerCore.Update(); } } }