Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of WalkButton v1.1.0
WalkButton.dll
Decompiled 3 days agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("WalkButton")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("WalkButton")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("aab8f646-035d-440f-bc04-5338c48f4f59")] [assembly: AssemblyFileVersion("1.1.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.1.0.0")] [BepInPlugin("org.sealofapproval.walkbuttonmod", "walk Button Mod", "1.1.0")] public class WalkButton : BaseUnityPlugin { private ConfigEntry<string> walkButton; private ConfigEntry<string> mode; private bool toggle = true; protected WalkButton() { walkButton = ((BaseUnityPlugin)this).Config.Bind<string>("General", "walkButton", "L", "Changes the button for walking."); mode = ((BaseUnityPlugin)this).Config.Bind<string>("General", "mode", "hold", "hold or toggle to walk slowly? \"hold\" or \"toggle\"?"); } private void Update() { //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_005f: Unknown result type (might be due to invalid IL or missing references) HeroController instance = HeroController.instance; if ((Object)(object)instance == (Object)null) { return; } _ = instance.cState; if (Enum.TryParse<KeyCode>(walkButton.Value, ignoreCase: false, out KeyCode result)) { ((Component)instance).GetComponent<HeroAnimationController>(); if (mode.Value != "toggle") { if (Input.GetKey(result)) { instance.cState.inWalkZone = true; } else if (Input.GetKeyUp(result)) { instance.cState.inWalkZone = false; } } else if (Input.GetKeyDown(result)) { instance.cState.inWalkZone = toggle; toggle = !toggle; } } else { Debug.LogError((object)("Can not parse key=" + walkButton.Value)); } } }