From eb6f1dd61f91a834c1637990946f372074b7551f Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:21:17 +0100 Subject: [PATCH] Fixed errors --- Assets/Scenes/GameScene.unity | 8 ++++++++ Assets/Scripts/UI/PauseMenu.cs | 17 ++--------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index 4575dc7..c470521 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -871,6 +871,10 @@ PrefabInstance: propertyPath: Volume value: 0.25 objectReference: {fileID: 0} + - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} + propertyPath: m_Enabled + value: 0 + objectReference: {fileID: 0} - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: StepInterval value: 1 @@ -1363,6 +1367,10 @@ PrefabInstance: propertyPath: Volume value: 0.25 objectReference: {fileID: 0} + - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} + propertyPath: m_Enabled + value: 0 + objectReference: {fileID: 0} - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} propertyPath: StepInterval value: 1 diff --git a/Assets/Scripts/UI/PauseMenu.cs b/Assets/Scripts/UI/PauseMenu.cs index 843578d..c618ee3 100644 --- a/Assets/Scripts/UI/PauseMenu.cs +++ b/Assets/Scripts/UI/PauseMenu.cs @@ -51,21 +51,8 @@ public class PauseMenu : MonoBehaviour { MainMenu(); } - } - if (!isPaused) - break; - - if (controller.crossButton.IsPressed()) - { - ResumeGame(); - } - if (controller.circleButton.IsPressed()) - { - QuitGame(); - } - if (controller.squareButton.IsPressed()) - { - MainMenu(); + if (!isPaused) + break; } }