From 91fe9b04f5d541d7228735cc0c9f749bd03de97c Mon Sep 17 00:00:00 2001 From: streitixy Date: Thu, 29 Feb 2024 14:56:00 -0300 Subject: [PATCH] changing Clap() and Sound() to a prefunction --- Assets/Scripts/Games/BonOdori/BonOdori.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Games/BonOdori/BonOdori.cs b/Assets/Scripts/Games/BonOdori/BonOdori.cs index 90fd83042..c687db418 100644 --- a/Assets/Scripts/Games/BonOdori/BonOdori.cs +++ b/Assets/Scripts/Games/BonOdori/BonOdori.cs @@ -34,7 +34,7 @@ namespace HeavenStudio.Games.Loaders new GameAction("pan", "Pan") { - function = delegate { + preFunction = delegate { var e = eventCaller.currentEntity; string variation = "variation" + (new string[] { "Pan", "Pa", "Pa_n" })[e["type"]]; BonOdori.instance.Clap(e.beat, e[variation], e["type"], e["mute"],e["clapType"], e["semitone"]); @@ -406,7 +406,7 @@ namespace HeavenStudio.Games 2 or _ => "pa", }; var pitch = SoundByte.GetPitchFromSemiTones(semitone, true); - SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), -1, pitch); + SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch); @@ -426,7 +426,7 @@ namespace HeavenStudio.Games }; var pitch = SoundByte.GetPitchFromSemiTones(semitone, true); - SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), -1, pitch); + SoundByte.PlayOneShotGame($"bonOdori/" + clip + (variation + 1), beat, pitch); }