Added Ding/Applause SFX to Mr. Upbeat

This commit is contained in:
Carson Kompon 2022-03-06 14:48:39 -05:00
parent 3f2cc123cb
commit 8dc36b1cb9
2 changed files with 11 additions and 0 deletions

View file

@ -82,6 +82,13 @@ namespace RhythmHeavenMania.Games.MrUpbeat
beatCount = 0; beatCount = 0;
} }
public void Ding(bool applause)
{
if(applause)
Jukebox.PlayOneShotGame("mrUpbeat/applause");
else
Jukebox.PlayOneShotGame("mrUpbeat/ding");
}
public void Beat(float beat) public void Beat(float beat)
{ {

View file

@ -378,6 +378,10 @@ namespace RhythmHeavenMania
{ {
new GameAction("prepare", delegate { MrUpbeat.instance.SetInterval(eventCaller.currentEntity.beat); }, 0.5f, true), new GameAction("prepare", delegate { MrUpbeat.instance.SetInterval(eventCaller.currentEntity.beat); }, 0.5f, true),
new GameAction("go", delegate { MrUpbeat.instance.Go(eventCaller.currentEntity.beat); }, 4f, true), new GameAction("go", delegate { MrUpbeat.instance.Go(eventCaller.currentEntity.beat); }, 4f, true),
new GameAction("ding!", delegate { MrUpbeat.instance.Ding(eventCaller.currentEntity.toggle); }, 0.5f, parameters: new List<Param>()
{
new Param("toggle", false, "Applause")
}),
}), }),
/*new Minigame("spaceDance", "Space Dance", "B888F8", new List<GameAction>() /*new Minigame("spaceDance", "Space Dance", "B888F8", new List<GameAction>()
{ {