From 804483f3dec705fa22d31b6f32f4a78606c31cdb Mon Sep 17 00:00:00 2001 From: RochesterX Date: Fri, 7 Mar 2025 17:03:46 -0500 Subject: [PATCH] Bug fix --- Assets/Scenes/Title Screen.unity | 2 +- Assets/Scripts/PlayerMovement.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Scenes/Title Screen.unity b/Assets/Scenes/Title Screen.unity index 568418b..3f80a1f 100644 --- a/Assets/Scenes/Title Screen.unity +++ b/Assets/Scenes/Title Screen.unity @@ -677,7 +677,7 @@ MonoBehaviour: m_ActionsAsset: {fileID: -944628639613478452, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} m_PointAction: {fileID: -1654692200621890270, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} m_MoveAction: {fileID: -8784545083839296357, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} - m_SubmitAction: {fileID: 392368643174621059, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} + m_SubmitAction: {fileID: 0} m_CancelAction: {fileID: 7727032971491509709, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} m_LeftClickAction: {fileID: 3001919216989983466, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} m_MiddleClickAction: {fileID: -2185481485913320682, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3} diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs index 388fec1..1d2535e 100644 --- a/Assets/Scripts/PlayerMovement.cs +++ b/Assets/Scripts/PlayerMovement.cs @@ -70,7 +70,7 @@ public class PlayerMovement : MonoBehaviour private void Update() { - if (damageable.dying || GameManager.Instance.gameOver) return; + if (damageable.dying || (GameManager.Instance != null && GameManager.Instance.gameOver)) return; Jump();