From 10572ab35dd97c5fd0611147b3cabfd9c481f86b Mon Sep 17 00:00:00 2001 From: Slaith <34562469+Slaith12@users.noreply.github.com> Date: Sun, 27 Feb 2022 11:01:31 -0800 Subject: [PATCH] Actually fixed event system Somehow I didn't notice while testing before that everything was wrong. I was already suspecting these lines of code would do something weird, and they certainly did. --- Assets/Scripts/EventCaller.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Scripts/EventCaller.cs b/Assets/Scripts/EventCaller.cs index 31e90cbf5..2581694e3 100644 --- a/Assets/Scripts/EventCaller.cs +++ b/Assets/Scripts/EventCaller.cs @@ -57,8 +57,7 @@ namespace RhythmHeavenMania private void Update() { - if (GameManager.instance.currentEvent >= 0 && GameManager.instance.currentEvent < GameManager.instance.Beatmap.entities.Count) - currentEntity.beat = GameManager.instance.Beatmap.entities[GameManager.instance.currentEvent].beat; + } public void CallEvent(Beatmap.Entity entity)