예제 #1
0
 public void PlayStableSongs(ShakeDetector sd)
 {
     if (Start)
     {
         if (Acc4 && !AccStableMedia2.IsPlaying && !sd.ShockSongIsPlaying())
         {
             AccStableMedia1.Start();
             Acc4 = false;
             Acc5 = true;
         }
         else if (Acc5 && !AccStableMedia1.IsPlaying && !sd.ShockSongIsPlaying())
         {
             AccStableMedia2.Start();
             Acc5 = false;
             Acc4 = true;
         }
     }
 }
예제 #2
0
 public void PlayInclinedSongs(ShakeDetector sd)
 {
     if (Start)
     {
         if (Acc1 && !AccInclinedMedia2.IsPlaying && !AccInclinedMedia3.IsPlaying && !sd.ShockSongIsPlaying())
         {
             AccInclinedMedia1.Start();
             Acc1 = false;
             Acc2 = true;
         }
         else if (Acc2 && !AccInclinedMedia1.IsPlaying && !AccInclinedMedia3.IsPlaying && !sd.ShockSongIsPlaying())
         {
             AccInclinedMedia2.Start();
             Acc2 = false;
             Acc3 = true;
         }
         else if (Acc3 && !AccInclinedMedia1.IsPlaying && !AccInclinedMedia2.IsPlaying && !sd.ShockSongIsPlaying())
         {
             AccInclinedMedia3.Start();
             Acc3 = false;
             Acc1 = true;
         }
     }
 }