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); }
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); }