Decompiled source of FartZone v1.0.3

FartZone.dll

Decompiled 6 months ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("FartZone")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("FartZone")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2")]
[assembly: AssemblyProduct("FartZone")]
[assembly: AssemblyTitle("FartZone")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.2.0")]
[module: UnverifiableCode]
public class FartAirScrip : MonoBehaviour
{
	public AudioSource AudioSource;

	public List<AudioClip> AudioClips;

	private void OnTriggerEnter(Collider other)
	{
		AudioClip clip = AudioClips[Random.Range(0, AudioClips.Count)];
		AudioSource.clip = clip;
		AudioSource.Play();
		Debug.Log((object)"Player farted !!");
	}
}
namespace FartMoon;

[BepInPlugin("wexop.fartzone", "FartZone", "1.0.2")]
[BepInDependency("evaisa.lethallib", "0.15.1")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "wexop.fartzone";

	private const string NAME = "FartZone";

	private const string VERSION = "1.0.2";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		((BaseUnityPlugin)this).Logger.LogInfo((object)"FartZone starting....");
	}
}
public static class PluginInfo
{
	public const string PLUGIN_GUID = "FartZone";

	public const string PLUGIN_NAME = "FartZone";

	public const string PLUGIN_VERSION = "1.0.2";
}