From 8dc36b1cb99389ce7add128a9dd763f00b61f7ea Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Sun, 6 Mar 2022 14:48:39 -0500 Subject: [PATCH] Added Ding/Applause SFX to Mr. Upbeat --- Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs | 7 +++++++ Assets/Scripts/Minigames.cs | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs index 7dc05292..ac60d8c6 100644 --- a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs +++ b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs @@ -82,6 +82,13 @@ namespace RhythmHeavenMania.Games.MrUpbeat beatCount = 0; } + public void Ding(bool applause) + { + if(applause) + Jukebox.PlayOneShotGame("mrUpbeat/applause"); + else + Jukebox.PlayOneShotGame("mrUpbeat/ding"); + } public void Beat(float beat) { diff --git a/Assets/Scripts/Minigames.cs b/Assets/Scripts/Minigames.cs index 4e261e6a..4c3ed46b 100644 --- a/Assets/Scripts/Minigames.cs +++ b/Assets/Scripts/Minigames.cs @@ -378,6 +378,10 @@ namespace RhythmHeavenMania { 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("ding!", delegate { MrUpbeat.instance.Ding(eventCaller.currentEntity.toggle); }, 0.5f, parameters: new List() + { + new Param("toggle", false, "Applause") + }), }), /*new Minigame("spaceDance", "Space Dance", "B888F8", new List() {