예제 #1
0
 private static void ThreeLevelPlay(
     AmbientSound s1, float l1,
     AmbientSound s2, float l2,
     AmbientSound s3,
     float count, float volume)
 {
     if (count < _6)
     {
         s1.EaseIntoVolume(volume);
         s2.EaseIntoVolume(0);
         s3.EaseIntoVolume(0);
     }
     else if (count < _30)
     {
         s1.EaseIntoVolume(0);
         s2.EaseIntoVolume(volume);
         s3.EaseIntoVolume(0);
     }
     else
     {
         s1.EaseIntoVolume(0);
         s2.EaseIntoVolume(0);
         s3.EaseIntoVolume(volume);
     }
 }
예제 #2
0
        public static void StartAmbientSounds()
        {
            SwordFight_Level1 = new AmbientSound("SwordFight_Level2");
            SwordFight_Level2 = new AmbientSound("SwordFight_Level2");
            SwordFight_Level3 = new AmbientSound("SwordFight_Level2");

            Walking_Level1 = new AmbientSound("Walking_Level1");
            Walking_Level2 = new AmbientSound("Walking_Level2");
            Walking_Level3 = new AmbientSound("Walking_Level3");
        }