using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NoFace")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoFace")]
[assembly: AssemblyTitle("NoFace")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoFace;
[BepInPlugin("com.yourname.NoFace", "NoFace", "1.0.0")]
public class NoFacePlugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0005: Unknown result type (might be due to invalid IL or missing references)
new Harmony("com.yourname.NoFace").PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"DEN_Face removal mod loaded (patched Update).");
}
private void Start()
{
DEN_Face[] array = Object.FindObjectsOfType<DEN_Face>();
for (int i = 0; i < array.Length; i++)
{
Object.Destroy((Object)(object)((Component)array[i]).gameObject);
}
}
}
[HarmonyPatch(typeof(DEN_Face), "Update")]
public static class DEN_Face_Update_Patch
{
private static bool Prefix(DEN_Face __instance)
{
if ((Object)(object)__instance != (Object)null && (Object)(object)((Component)__instance).gameObject != (Object)null)
{
Object.Destroy((Object)(object)((Component)__instance).gameObject);
}
return false;
}
}