SynthMaze/Assets/game/Scripts/UI/Music/MusicValue.cs
2024-04-28 11:26:46 +02:00

22 lines
437 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class MusicValue : MonoBehaviour
{
private Slider mainSlider;
// Start is called before the first frame update
void Awake()
{
mainSlider = GetComponent<Slider>();
}
// Update is called once per frame
void Update()
{
mainSlider.value = SoundBar.SoundVolume;
}
}