Made background music and started on difficulty slider

This commit is contained in:
2026-01-22 23:18:33 +00:00
parent b3e5769758
commit 3c25ec932f
9 changed files with 253 additions and 28 deletions

View File

@@ -0,0 +1,20 @@
using UnityEngine.UI;
using UnityEngine;
namespace InterfaceOff.MainMenu
{
public class DifficultyManager : MonoBehaviour
{
public static float DifficultyMultiplier { get; private set; } = 1;
[SerializeField] private Slider DifficultySlider;
private void Awake()
{
DifficultySlider.onValueChanged.AddListener((val) =>
{
DifficultyMultiplier = val / 4f; // Makes it between 0.75 and 1.25
Debug.Log("Difficulty Slider: " + DifficultyMultiplier);
});
}
}
}