Decompiled source of NoInvisibleWalls v1.0.0

noinviswall patch 1.1.1.dll

Decompiled 3 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("first project")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("first project")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("79708379-5e7f-42f7-bb5d-80bdff127db6")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace first_project;

[BepInPlugin("capybaramods.Ultrakill.noinviswalls", "noinviswalls", "1.1.1")]
public class Class1 : BaseUnityPlugin
{
	private void Start()
	{
		Debug.Log((object)"Started Remove walls");
	}

	private void Update()
	{
		if (SceneHelper.CurrentScene == "uk_construct")
		{
			GameObject val = GameObject.Find("Invisible Walls");
			if ((Object)(object)val != (Object)null)
			{
				val.SetActive(false);
				Debug.Log((object)"Disabled invisible walls");
			}
			GameObject val2 = GameObject.Find("WorldOptionsButton");
			if ((Object)(object)val2 != (Object)null)
			{
				val2.SetActive(false);
				Debug.Log((object)"Disabled World Options Button");
			}
		}
	}
}