From 7f1466c644315ed67ecaadd0e80964eb19f9833d Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:59:21 +0200 Subject: [PATCH] fixed an issue where space soccer would sometimes go black because of a kitties change bg color object (#556) --- Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs index f9a0ea19..238d8d57 100644 --- a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs +++ b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs @@ -530,7 +530,7 @@ namespace HeavenStudio.Games colorLength = length; colorStart = colorStartSet; colorEnd = colorEndSet; - colorStartDot = colorEndDotSet; + colorStartDot = colorStartDotSet; colorEndDot = colorEndDotSet; colorEase = (Util.EasingFunction.Ease)ease; } @@ -538,7 +538,7 @@ namespace HeavenStudio.Games //call this in OnPlay(double beat) and OnGameSwitch(double beat) private void PersistColor(double beat) { - var allEventsBeforeBeat = EventCaller.GetAllInGameManagerList("kitties", new string[] { "bgcolor" }).FindAll(x => x.beat < beat); + var allEventsBeforeBeat = EventCaller.GetAllInGameManagerList("spaceSoccer", new string[] { "changeBG" }).FindAll(x => x.beat < beat); if (allEventsBeforeBeat.Count > 0) { allEventsBeforeBeat.Sort((x, y) => x.beat.CompareTo(y.beat)); //just in case