Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public bool isCustomKnightInstalled()
 {
     return(ModHooks.GetMod("CustomKnight") is Mod);
 }