Esempio n. 1
0
    public void PlayDrumTrack(EnemyController.Difficulty difficulty, int index)
    {
        StopCoroutine(fadeDrumTrackEnum);
        drumTrack.volume = 1.0f;
        switch (difficulty)
        {
        case EnemyController.Difficulty.Easy:
            drumTrack.clip = easyDrumTracks[index];
            break;

        case EnemyController.Difficulty.Medium:
            drumTrack.clip = medDrumTracks[index];
            break;

        case EnemyController.Difficulty.Hard:
            drumTrack.clip = hardDrumTracks[index];
            break;
        }
        drumTrack.Play();
    }
Esempio n. 2
0
    public void PlayRiffTrack(EnemyController.Difficulty difficulty, int index)
    {
        StopCoroutine(fadeRiffTrackEnum);
        riffTrack.volume = 1.0f;
        switch (difficulty)
        {
        case EnemyController.Difficulty.Easy:
            riffTrack.clip = easyRiffTracks[index];
            break;

        case EnemyController.Difficulty.Medium:
            riffTrack.clip = medRiffTracks[index];
            break;

        case EnemyController.Difficulty.Hard:
            riffTrack.clip = hardRiffTracks[index];
            break;
        }
        riffTrack.Play();
    }