using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
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: AssemblyTitle("repo new mode")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("repo new mode")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("20542cfe-95ab-41a2-bf4f-c86be5adb762")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("com.km0.gamespeed", "KM Game Speed Mod", "1.0.0")]
public class GameSpeedController : BaseUnityPlugin
{
private bool isFastMotion = false;
private void Update()
{
if (Input.GetKeyDown((KeyCode)283))
{
isFastMotion = !isFastMotion;
if (isFastMotion)
{
Time.timeScale = 2f;
((BaseUnityPlugin)this).Logger.LogInfo((object)"Game Speed: FAST (2x)");
}
else
{
Time.timeScale = 1f;
((BaseUnityPlugin)this).Logger.LogInfo((object)"Game Speed: NORMAL");
}
}
}
}