Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Commit

Permalink
var hate
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeroluna committed Mar 12, 2021
1 parent cf6809e commit 4098211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Chroma/Colorizer/LightColorizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,17 @@ private LSEColorManager(MonoBehaviour mono, BeatmapEventType type)

Lights = lse.GetField<LightWithIdManager, LightSwitchEventEffect>("_lightManager").GetField<List<ILightWithId>[], LightWithIdManager>("_lights")[lse.lightsId];
IDictionary<int, List<ILightWithId>> lightsPreGroup = new Dictionary<int, List<ILightWithId>>();
var managers = Object.FindObjectsOfType<TrackLaneRingsManager>();
TrackLaneRingsManager[] managers = Object.FindObjectsOfType<TrackLaneRingsManager>();
foreach (ILightWithId light in Lights)
{
if (light is MonoBehaviour monoBehaviour)
{
int z = Mathf.RoundToInt(monoBehaviour.transform.position.z);

var ring = monoBehaviour.GetComponentInParent<TrackLaneRing>();
TrackLaneRing ring = monoBehaviour.GetComponentInParent<TrackLaneRing>();
if (ring != null)
{
var mngr = managers.FirstOrDefault(it => it.Rings.IndexOf(ring) >= 0);
TrackLaneRingsManager mngr = managers.FirstOrDefault(it => it.Rings.IndexOf(ring) >= 0);
if (mngr != null)
{
z = 1000 + mngr.Rings.IndexOf(ring);
Expand Down

0 comments on commit 4098211

Please sign in to comment.