using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using Unity.Netcode;
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("AmberAlert")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("AmberAlert")]
[assembly: AssemblyTitle("AmberAlert")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace AmberAlert;
[BepInPlugin("verity.amberalertt", "Amber Alert", "1.0.1")]
public class Plugin : BaseUnityPlugin
{
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Amber Alert Loaded!");
}
private void Update()
{
//IL_0037: Unknown result type (might be due to invalid IL or missing references)
RoundManager instance = RoundManager.Instance;
if (instance == null)
{
return;
}
EnemyAI[] array = Object.FindObjectsOfType<EnemyAI>();
foreach (EnemyAI val in array)
{
if (val is DressGirlAI)
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Deleted the girl, bye bye.");
instance.DespawnEnemyServerRpc(NetworkObjectReference.op_Implicit(((NetworkBehaviour)val).NetworkObject));
}
}
}
}