Exemplo n.º 1
0
    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));
    }
Exemplo n.º 2
0
 private void Awake()
 {
     audioSource = Camera.main.GetComponent <AudioSource>();
     StartCoroutine(AudioSourceFade.StartFade(audioSource, 3, (float)0.4));
 }