void SetAllAudioVolumeOnUpdate() { for (int i = 0; i < transform.childCount; i++) { if (GameManager.instance.soundSourcesCreated.Contains(transform.GetChild(i).name)) { transform.GetChild(i).GetComponent <AudioSource>().volume = AudioManagerTemp.GetAudioClipVolume(returnCorrectSound(transform.GetChild(i).name)); } } }
// Start is called before the first frame update void Start() { AudioManagerTemp.Initialize(); AudioManagerTemp.PlaySound(AudioManagerTemp.Sound.LogoSound); }