diff --git a/QSB/ElevatorSync/QSBElevator.cs b/QSB/ElevatorSync/QSBElevator.cs index 2bbbd584..7d51fd48 100644 --- a/QSB/ElevatorSync/QSBElevator.cs +++ b/QSB/ElevatorSync/QSBElevator.cs @@ -1,8 +1,6 @@ using OWML.Utils; -using QSB.Utility; using QSB.WorldSync; using UnityEngine; -using UnityEngine.UI; namespace QSB.ElevatorSync { diff --git a/QSB/QuantumSync/QSBMultiStateQuantumObject.cs b/QSB/QuantumSync/QSBMultiStateQuantumObject.cs index a09a0f8f..638b3d9a 100644 --- a/QSB/QuantumSync/QSBMultiStateQuantumObject.cs +++ b/QSB/QuantumSync/QSBMultiStateQuantumObject.cs @@ -1,7 +1,6 @@ using OWML.Utils; using QSB.Utility; using QSB.WorldSync; -using System.Linq; using UnityEngine.UI; namespace QSB.QuantumSync diff --git a/QSB/QuantumSync/QSBQuantumSocket.cs b/QSB/QuantumSync/QSBQuantumSocket.cs index 21be0b78..febdc7bf 100644 --- a/QSB/QuantumSync/QSBQuantumSocket.cs +++ b/QSB/QuantumSync/QSBQuantumSocket.cs @@ -1,8 +1,5 @@ using OWML.Utils; -using QSB.Utility; using QSB.WorldSync; -using System.Linq; -using UnityEngine.UI; namespace QSB.QuantumSync { diff --git a/QSB/Utility/DebugBoxManager.cs b/QSB/Utility/DebugBoxManager.cs index 364c0046..2805807d 100644 --- a/QSB/Utility/DebugBoxManager.cs +++ b/QSB/Utility/DebugBoxManager.cs @@ -1,9 +1,5 @@ using OWML.Common; using OWML.Utils; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using UnityEngine; using UnityEngine.UI; diff --git a/QSB/Utility/DebugZOverride.cs b/QSB/Utility/DebugZOverride.cs index eeee4cb9..b92c805c 100644 --- a/QSB/Utility/DebugZOverride.cs +++ b/QSB/Utility/DebugZOverride.cs @@ -4,36 +4,36 @@ using UnityEngine.UI; namespace QSB.Utility { - public class DebugZOverride : MonoBehaviour - { - private const string shaderTestMode = "unity_GUIZTestMode"; + public class DebugZOverride : MonoBehaviour + { + private const string shaderTestMode = "unity_GUIZTestMode"; private readonly UnityEngine.Rendering.CompareFunction desiredUIComparison = UnityEngine.Rendering.CompareFunction.Always; - private Graphic[] uiElementsToApplyTo; - private Dictionary materialMappings = new Dictionary(); + private Graphic[] uiElementsToApplyTo; + private readonly Dictionary materialMappings = new Dictionary(); - protected virtual void Start() - { - uiElementsToApplyTo = gameObject.GetComponentsInChildren(); - foreach (var graphic in uiElementsToApplyTo) - { - var material = graphic.materialForRendering; - if (material == null) - { - continue; - } + protected virtual void Start() + { + uiElementsToApplyTo = gameObject.GetComponentsInChildren(); + foreach (var graphic in uiElementsToApplyTo) + { + var material = graphic.materialForRendering; + if (material == null) + { + continue; + } Material materialCopy; if (!materialMappings.ContainsKey(material)) - { - materialCopy = new Material(material); - materialMappings.Add(material, materialCopy); - } - else - { - materialCopy = materialMappings[material]; - } - materialCopy.SetInt(shaderTestMode, (int)desiredUIComparison); - graphic.material = materialCopy; - } - } - } + { + materialCopy = new Material(material); + materialMappings.Add(material, materialCopy); + } + else + { + materialCopy = materialMappings[material]; + } + materialCopy.SetInt(shaderTestMode, (int)desiredUIComparison); + graphic.material = materialCopy; + } + } + } }