Exemple #1
0
 public override void Update(GameTime gameTime)
 {
     if (Timer == 1)
     {
         Item_Collected1.Play();
         Timer = 0;
     }
     if (Timer == 2)
     {
         Item_Collected2.Play();
         Timer = 0;
     }
     if (Timer == 3)
     {
         Item_Collected3.Play();
         Timer = 0;
     }
     base.Update(gameTime);
 }
Exemple #2
0
 public override void Update(GameTime gameTime)
 {
     //int Timer helps to choose random sounds
     if (Timer == 1)
     {
         Item_Collected1.Play();
         Timer = 0;
     }
     if (Timer == 2)
     {
         Item_Collected2.Play();
         Timer = 0;
     }
     if (Timer == 3)
     {
         Item_Collected3.Play();
         Timer = 0;
     }
     base.Update(gameTime);
 }