Compare commits
1 Commits
a69e46c6a3
...
c6118862d4
Author | SHA1 | Date |
---|---|---|
|
c6118862d4 |
|
@ -218,7 +218,7 @@ namespace MuzikaGromche
|
||||||
|
|
||||||
static readonly List<Color> Colors = [Color.magenta, Color.cyan, Color.green, Color.yellow];
|
static readonly List<Color> Colors = [Color.magenta, Color.cyan, Color.green, Color.yellow];
|
||||||
|
|
||||||
public Color ColorForBeat(float beat)
|
public Color ColorAtBeat(float beat)
|
||||||
{
|
{
|
||||||
int beatIndex = (int)(Math.Floor(beat) % Beats);
|
int beatIndex = (int)(Math.Floor(beat) % Beats);
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ namespace MuzikaGromche
|
||||||
if (__instance.previousState == 2)
|
if (__instance.previousState == 2)
|
||||||
{
|
{
|
||||||
var beat = Plugin.CurrentTrack.CalculateBeat(start: __instance.farAudio, loop: __instance.creatureVoice);
|
var beat = Plugin.CurrentTrack.CalculateBeat(start: __instance.farAudio, loop: __instance.creatureVoice);
|
||||||
var color = Plugin.CurrentTrack.ColorForBeat(beat);
|
var color = Plugin.CurrentTrack.ColorAtBeat(beat);
|
||||||
Plugin.SetLightColor(color);
|
Plugin.SetLightColor(color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue