Exemple #1
0
 void playRandomMusic()
 {
     if (dnc.isNight)
     {
         if (dnc.GetNightNumber() == dnc.GetFinalNight())
         {
             audioo.clip = finalBossMusic;
         }
         else
         {
             audioo.clip = musicNight[Random.Range(0, musicNight.Length)] as AudioClip;
         }
     }
     else
     {
         audioo.clip = musicDay[Random.Range(0, musicDay.Length)] as AudioClip;
     }
     audioo.Play();
 }