Beispiel #1
0
        protected override void Load()
        {
            Logger.Log("Made by https://vk.com/plugins_gy", ConsoleColor.Magenta);
            Logger.Log("Made by https://vk.com/plugins_gy", ConsoleColor.Magenta);
            Logger.Log("Made by https://vk.com/plugins_gy", ConsoleColor.Magenta);

            _harmonyInstance = HarmonyInstance.Create("com.gy.plugins");
            Instance         = this;
            _harmonyInstance.Patch(_myOriginal, new HarmonyMethod(_myPrefix));
        }
Beispiel #2
0
 protected override void Unload()
 {
     _harmonyInstance.Unpatch(_myOriginal, _myPrefix);
     _harmonyInstance = null;
     Instance         = null;
 }