using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.Audio;
using UnityEngine.UI;

public class VolumeManager : MonoBehaviour
{
    public static VolumeManager inst;
    public Slider volumeSlider;
    public AudioMixer audioMixer;

    // void Awake(){
    //     if(inst == null)
    //         inst = this;
    //     else
    //         Destroy(gameObject);
    // }
    void Start(){
        //DontDestroyOnLoad(this);
    }
    public void ChangeVolume(){
        audioMixer.SetFloat("volume", volumeSlider.value);
    }
}
