private void Awake() { AudioSource audioSource = GetComponent <AudioSource>(); // Fade in the game music to 0.6 volume in 4 sec. StartCoroutine(AudioSourceFade.StartFade(audioSource, 4, (float)0.5)); }
private void Awake() { audioSource = Camera.main.GetComponent <AudioSource>(); StartCoroutine(AudioSourceFade.StartFade(audioSource, 3, (float)0.4)); }