Harmony — это пространство имен, но используется как тип
Используемые библиотеки: Я понимаю ошибку и попробовал несколько способов ее исправить. Вот мой код:
Код: Выделить всё
using MelonLoader;
using HarmonyLib;
using UnityEngine;
[assembly: MelonInfo(typeof(ExampleMod), "ExampleMod", "1.0.0", "xBeardedDice")]
[assembly: MelonGame("TVGS", "Schedule 1")]
public class ExampleMod : MelonMod
{
// Called on Mod Initialization
public override void OnInitializeMelon()
{
LoggerInstance.Msg("Mod Initialized!");
SetupHarmonyPatches();
}
// Called When Scene Loads
public override void OnSceneWasLoaded(int buildIndex, string sceneName)
{
LoggerInstance.Msg($"Scene Loaded: {sceneName}");
}
private void SetupHarmonyPatches()
{
// Apply Harmony Patches
Harmony harmony = new Harmony("com.xbeardeddice.examplemod");
harmony.PatchAll();
}
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... ike-a-type
Мобильная версия