From bdd2b91ec94dd94bb904f2068b57decf3fa667af Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Fri, 26 Jan 2024 21:07:09 +0100 Subject: [PATCH] fixed sounds --- Assets/Scripts/Games/TotemClimb/TotemClimb.cs | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/TotemClimb/TotemClimb.cs b/Assets/Scripts/Games/TotemClimb/TotemClimb.cs index ff7519866..9eee73153 100644 --- a/Assets/Scripts/Games/TotemClimb/TotemClimb.cs +++ b/Assets/Scripts/Games/TotemClimb/TotemClimb.cs @@ -54,6 +54,22 @@ namespace HeavenStudio.Games.Loaders }, defaultLength = 4f }, + new("startCue", "Normal Jump Cue") + { + preFunction = delegate + { + TotemClimb.StartCueIn(eventCaller.currentEntity.beat + 2); + }, + defaultLength = 2f + }, + new("tripleCue", "Triple Jump Cue") + { + preFunction = delegate + { + TotemClimb.TripleCueIn(eventCaller.currentEntity.beat + 2); + }, + defaultLength = 2f + }, new("bird", "Bird") { function = delegate @@ -394,7 +410,17 @@ namespace HeavenStudio.Games { new("totemClimb/beatchange", beat - 2), new("totemClimb/beatchange", beat - 1), - }); + }, true, true); + } + + public static void TripleCueIn(double beat) + { + MultiSound.Play(new MultiSound.Sound[] + { + new("totemClimb/beatchange", beat - 2), + new("totemClimb/beatchange", beat - 1.5), + new("totemClimb/beatchange", beat - 1), + }, true, true); } public static void TripleJumpSound(double beat, float length, bool enterSound, bool exitSound)