From c9d77dc0348ca48386bbcb7ad286c396f365fa96 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Mon, 14 Aug 2023 18:53:14 -0500 Subject: [PATCH] [Blackout] Cleanup --- Blackout/AssetHandler.cs | 9 ++++----- Blackout/BlackoutController.cs | 8 ++++---- Blackout/Main.cs | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Blackout/AssetHandler.cs b/Blackout/AssetHandler.cs index e3bce0d..bdeaf2a 100644 --- a/Blackout/AssetHandler.cs +++ b/Blackout/AssetHandler.cs @@ -12,16 +12,15 @@ namespace NAK.Blackout; */ - -static class AssetsHandler +internal static class AssetsHandler { - static readonly List ms_assets = new List() + private static readonly List ms_assets = new List() { "blackout_controller.asset" }; - static Dictionary ms_loadedAssets = new Dictionary(); - static Dictionary ms_loadedObjects = new Dictionary(); + private static Dictionary ms_loadedAssets = new Dictionary(); + private static Dictionary ms_loadedObjects = new Dictionary(); public static void Load() { diff --git a/Blackout/BlackoutController.cs b/Blackout/BlackoutController.cs index e15e414..ac31667 100644 --- a/Blackout/BlackoutController.cs +++ b/Blackout/BlackoutController.cs @@ -121,7 +121,7 @@ public class BlackoutController : MonoBehaviour } // Initialize the BlackoutInstance object. - void Start() + private void Start() { Instance = this; @@ -146,7 +146,7 @@ public class BlackoutController : MonoBehaviour } //Automatic State Change - void Update() + private void Update() { //get the current position of the player's head Vector3 curHeadPos = activeModeCam.transform.position; @@ -191,13 +191,13 @@ public class BlackoutController : MonoBehaviour ChangeBlackoutState(BlackoutState.Awake); } - void OnPreRender(Camera cam) + private void OnPreRender(Camera cam) { if (cam == activeModeCam) return; blackoutAnimator.transform.localScale = Vector3.zero; } - void OnPostRender(Camera cam) + private void OnPostRender(Camera cam) { blackoutAnimator.transform.localScale = Vector3.one; } diff --git a/Blackout/Main.cs b/Blackout/Main.cs index 8ad8826..119ef86 100644 --- a/Blackout/Main.cs +++ b/Blackout/Main.cs @@ -72,7 +72,7 @@ public class Blackout : MelonMod MelonLoader.MelonCoroutines.Start(WaitForLocalPlayer()); } - System.Collections.IEnumerator WaitForLocalPlayer() + private System.Collections.IEnumerator WaitForLocalPlayer() { //load blackout_controller.asset AssetsHandler.Load();