From acc68f6eb1b2d92152d1eac78b0b0bedc02beb01 Mon Sep 17 00:00:00 2001 From: Braedon Date: Mon, 7 Feb 2022 20:24:26 -0500 Subject: [PATCH] Fork Lifter food item rotation bug fixed --- Assets/Scenes/Editor.unity | 2 +- Assets/Scripts/Games/ForkLifter/Pea.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Scenes/Editor.unity b/Assets/Scenes/Editor.unity index bffe69c67..245371316 100644 --- a/Assets/Scenes/Editor.unity +++ b/Assets/Scenes/Editor.unity @@ -12351,7 +12351,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: level: {fileID: 0} - music: {fileID: 8300000, guid: c0b3e65059fb3cd49aa056342f2246c8, type: 3} + music: {fileID: 0} debugUI: 0 playOnStart: 0 editor: 1 diff --git a/Assets/Scripts/Games/ForkLifter/Pea.cs b/Assets/Scripts/Games/ForkLifter/Pea.cs index e2d26a853..d8f7e45b3 100644 --- a/Assets/Scripts/Games/ForkLifter/Pea.cs +++ b/Assets/Scripts/Games/ForkLifter/Pea.cs @@ -51,6 +51,7 @@ namespace RhythmHeavenMania.Games.ForkLifter pea.transform.parent = ForkLifterPlayer.instance.perfect.transform; pea.transform.localScale = Vector2.one; + pea.transform.localRotation = Quaternion.Euler(0, 0, 0); pea.transform.localPosition = Vector3.zero; @@ -198,7 +199,7 @@ namespace RhythmHeavenMania.Games.ForkLifter ForkLifterPlayer.instance.hitOnFrame++; } - if (normalizedBeat > 1.35f) + if (normalizedBeat > Minigame.EndTime()) { Jukebox.PlayOneShot("audience/disappointed"); Destroy(this.gameObject);