public override void Initialize() { Instance = this; SpriteLoader.LoadSprites(); AbstractCounter.SetupCanvas(); if (ModHooks.GetMod(nameof(ItemChanger.ItemChangerMod)) is Mod) { Log("Hooking Itemchanger"); ItemChangerCompatibility.Initialize(); } AbstractCounter.InitializeCounters(); // Pause Hooks On.UIManager.GoToPauseMenu += OnPause; On.UIManager.UIClosePauseMenu += OnUnpause; On.UIManager.ReturnToMainMenu += OnUnpauseQuitGame; UnityEngine.SceneManagement.SceneManager.sceneLoaded += OnSceneLoaded; GeoTracker.Hook(); }
public bool isCustomKnightInstalled() { return(ModHooks.GetMod("CustomKnight") is Mod); }