using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(/*Could not decode attribute arguments.*/)]
[assembly: TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
[assembly: AssemblyCompany("Ultrakill_minus_minus")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("Ultrakill_minus_minus")]
[assembly: AssemblyTitle("Ultrakill_minus_minus")]
[assembly: AssemblyVersion("1.0.0.0")]
[module: RefSafetyRules(11)]
namespace Ultrakill_minus_minus;
[BepInPlugin("UKSH.manymillerboy.ultrakill", "UltraHot", "1.0.0")]
public class Class1 : BaseUnityPlugin
{
private NewMovement player;
private void Update()
{
//IL_0065: Unknown result type (might be due to invalid IL or missing references)
//IL_006a: Unknown result type (might be due to invalid IL or missing references)
if ((Object)(object)player == (Object)null)
{
player = MonoSingleton<NewMovement>.Instance;
return;
}
player.ForceAntiHP(99f, true, false, true, false);
if (Object.op_Implicit((Object)(object)player.ridingRocket))
{
Time.timeScale = 1f;
return;
}
Vector3 velocity = player.rb.velocity;
Time.timeScale = Mathf.Clamp(((Vector3)(ref velocity)).magnitude / 16f, 0.05f, 1f);
}
}