diff --git a/BepInEx/BepInEx.csproj b/BepInEx/BepInEx.csproj
index c97285c..4d73220 100644
--- a/BepInEx/BepInEx.csproj
+++ b/BepInEx/BepInEx.csproj
@@ -41,7 +41,11 @@
False
- D:\koikatu\KoikatuTrial_Data\Managed\Assembly-CSharp.dll
+ ..\lib\Assembly-CSharp.dll
+
+
+ False
+ ..\lib\Assembly-CSharp-firstpass.dll
@@ -71,4 +75,4 @@
-
\ No newline at end of file
+
diff --git a/Plugins/ColorCorrector/ColorCorrector.cs b/Plugins/ColorCorrector/ColorCorrector.cs
index 7f5c39f..c7ec7e8 100644
--- a/Plugins/ColorCorrector/ColorCorrector.cs
+++ b/Plugins/ColorCorrector/ColorCorrector.cs
@@ -5,6 +5,7 @@ using System.Linq;
using System.Text;
using UnityEngine;
using UnityEngine.SceneManagement;
+using UnityStandardAssets.ImageEffects;
namespace ColorCorrector
{
@@ -12,17 +13,15 @@ namespace ColorCorrector
{
public override string Name => "Color Filter Remover";
- AmplifyColorEffect component;
+ AmplifyColorEffect amplifyComponent;
+ BloomAndFlares bloomComponent;
protected override void LevelFinishedLoading(Scene scene, LoadSceneMode mode)
{
if (Camera.main != null && Camera.main?.gameObject != null)
{
- var c = Camera.main.gameObject.GetComponent();
- if (c != null)
- {
- component = c;
- }
+ amplifyComponent = Camera.main.gameObject.GetComponent(); ;
+ bloomComponent = Camera.main.gameObject.GetComponent();
}
}
@@ -36,7 +35,10 @@ namespace ColorCorrector
void ToggleEffects()
{
- component.enabled = !component.enabled;
+ amplifyComponent.enabled = !amplifyComponent.enabled;
+ bloomComponent.enabled = !bloomComponent.enabled;
+ Console.WriteLine($"Amplify Filter Enabled: {amplifyComponent.enabled}");
+ Console.WriteLine($"Bloom Filter Enabled: {bloomComponent.enabled}");
}
}
}
diff --git a/Plugins/ColorCorrector/ColorCorrector.csproj b/Plugins/ColorCorrector/ColorCorrector.csproj
index 6a4ba25..4ab1014 100644
--- a/Plugins/ColorCorrector/ColorCorrector.csproj
+++ b/Plugins/ColorCorrector/ColorCorrector.csproj
@@ -34,6 +34,9 @@
..\..\lib\Assembly-CSharp.dll
False
+
+ ..\..\lib\Assembly-CSharp-firstpass.dll
+
@@ -57,4 +60,4 @@
-
\ No newline at end of file
+