using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using Microsoft.CodeAnalysis; 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 = ".NET Standard 2.1")] [assembly: AssemblyCompany("KenjiLib")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("KenjiLib")] [assembly: AssemblyTitle("KenjiLib")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace KenjiLib { [BepInPlugin("rectorado.KenjiLib", "KenjiLib", "0.1.0")] public class KenjiLib : BaseUnityPlugin { private const string modGUID = "rectorado.KenjiLib"; private const string modName = "KenjiLib"; private const string modVersion = "0.1.0"; internal static ManualLogSource mls; public static KenjiLib Instance { get; private set; } public void Awake() { mls = Logger.CreateLogSource("rectorado.KenjiLib"); Instance = this; mls.LogInfo((object)"rectorado.KenjiLib v0.1.0 has loaded!"); } } } namespace KenjiLib.Scripts { internal class KDestroyAroundShip : MonoBehaviour { public Vector3 CheckPosition = new Vector3(0f, 0f, -14f); public int Distance = 16; private void Awake() { //IL_0007: Unknown result type (might be due to invalid IL or missing references) //IL_000d: Unknown result type (might be due to invalid IL or missing references) if (Vector3.Distance(((Component)this).transform.position, CheckPosition) < (float)Distance) { Object.Destroy((Object)(object)((Component)this).gameObject); } } } }