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 Microsoft.CodeAnalysis;
using Reptile;
using UnityEngine;
using UnityEngine.SceneManagement;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("WoodzGravity")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyDescription("Enabled gravity for Bomb Rush Cyberfunk")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: AssemblyInformationalVersion("0.0.1")]
[assembly: AssemblyProduct("WoodzGravity")]
[assembly: AssemblyTitle("WoodzGravity")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.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 woodzgravity
{
[BepInPlugin("info.mariobluegloves.woodzgravityp", "Gravity Mod", "0.0.1")]
[BepInProcess("Bomb Rush Cyberfunk.exe")]
public class ToggleGravityPlugin : BaseUnityPlugin
{
private const double G = 9.8;
private bool sceneLoaded = false;
private Player p;
private void Awake()
{
SceneManager.sceneLoaded += OnSceneLoaded;
}
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
{
sceneLoaded = true;
}
private void Update()
{
if (!sceneLoaded)
{
return;
}
GameObject val = GameObject.Find("Player_HUMAN0");
if (!((Object)(object)val != (Object)null))
{
return;
}
Rigidbody component = val.GetComponent<Rigidbody>();
MovementMotor component2 = val.GetComponent<MovementMotor>();
p = val.GetComponent<Player>();
if ((Object)(object)component != (Object)null)
{
if (p.IsGrounded())
{
component.useGravity = false;
}
else
{
component.useGravity = true;
}
}
if ((Object)(object)component2 != (Object)null)
{
component2.gravityUp = 9.8f;
}
}
}
[BepInPlugin("info.mariobluegloves.woodzgravity", "Gravity Mod", "0.0.1")]
[BepInProcess("Bomb Rush Cyberfunk.exe")]
public class GravityModLoaded : BaseUnityPlugin
{
private void Awake()
{
((BaseUnityPlugin)this).Logger.LogInfo((object)"Move Faster, Pokey!");
}
}
}