temporary files rename
This commit is contained in:
parent
8e077e523c
commit
a87f0ed109
823 changed files with 20 additions and 5 deletions
|
@ -1,35 +0,0 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SoundSettings : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] Slider slider;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
SoundManager.Instance.PlayMusic("wait");
|
||||
}
|
||||
|
||||
public void SetVolume(float value)
|
||||
{
|
||||
if (value < 1)
|
||||
{
|
||||
value = 0.01f;
|
||||
}
|
||||
RefreshSlider(value);
|
||||
SoundManager.Instance.MusicSource.volume = value;
|
||||
}
|
||||
|
||||
public void SetVolumeFromSlider()
|
||||
{
|
||||
SetVolume(slider.value);
|
||||
}
|
||||
|
||||
public void RefreshSlider(float value)
|
||||
{
|
||||
slider.value = value;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue