From 6f01cd5e717fcacce8b63a6312542a7e0fb8e72c Mon Sep 17 00:00:00 2001 From: Pasha Bibko <156938226+PashaBibko@users.noreply.github.com> Date: Tue, 27 Jan 2026 09:51:11 +0000 Subject: [PATCH] Merged difficulty controls --- Assets/Scenes/MenuScene.unity | 16 +++++++++++++++- Assets/Scripts/DifficultyManager.cs | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Assets/Scenes/MenuScene.unity b/Assets/Scenes/MenuScene.unity index 48ee9a4..38824b3 100644 --- a/Assets/Scenes/MenuScene.unity +++ b/Assets/Scenes/MenuScene.unity @@ -406,6 +406,7 @@ GameObject: m_Component: - component: {fileID: 201752381} - component: {fileID: 201752382} + - component: {fileID: 201752383} m_Layer: 5 m_Name: DifficultySlider m_TagString: Untagged @@ -482,10 +483,23 @@ MonoBehaviour: m_MinValue: 3 m_MaxValue: 5 m_WholeNumbers: 0 - m_Value: 3 + m_Value: 4 m_OnValueChanged: m_PersistentCalls: m_Calls: [] +--- !u!114 &201752383 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 201752380} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 985fe7203793456f84cbf0526b831a3a, type: 3} + m_Name: + m_EditorClassIdentifier: + DifficultySlider: {fileID: 201752382} --- !u!1 &217457338 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/DifficultyManager.cs b/Assets/Scripts/DifficultyManager.cs index 208481f..0a41478 100644 --- a/Assets/Scripts/DifficultyManager.cs +++ b/Assets/Scripts/DifficultyManager.cs @@ -5,7 +5,7 @@ namespace InterfaceOff.MainMenu { public class DifficultyManager : MonoBehaviour { - public static float DifficultyMultiplier { get; private set; } = 0.75f; + public static float DifficultyMultiplier { get; private set; } = 1f; public static float DifficultyEffect => Mathf.Pow(f: DifficultyMultiplier, p: 2); [SerializeField] private Slider DifficultySlider;