From 837195774cf8011741315655cfe61439087c77cb Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:08:31 +0200 Subject: [PATCH] extra sounds --- Assets/Scripts/Games/AnimalAcrobat/AcrobatObstacle.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/AnimalAcrobat/AcrobatObstacle.cs b/Assets/Scripts/Games/AnimalAcrobat/AcrobatObstacle.cs index cfd11973c..c362becc2 100644 --- a/Assets/Scripts/Games/AnimalAcrobat/AcrobatObstacle.cs +++ b/Assets/Scripts/Games/AnimalAcrobat/AcrobatObstacle.cs @@ -76,7 +76,7 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat bool goingRight = (Mathf.Floor(normalizedSwingBeat) + negativeOffset) % 2 == 0; float dirMult = goingRight ? 1 : -1; rotatePivot.localEulerAngles = new Vector3(0, 0, func(-halfAngle * dirMult, halfAngle * dirMult, normalizedAdjusted)); - if (type == ObstacleType.Monkeys) anim.DoNormalizedAnimation("WhiteMonkeysSwing", normalizedAdjusted); + if (type == ObstacleType.Monkeys) anim.DoNormalizedAnimation("WhiteMonkeysSwing", normalizedSwingBeat); } private void JustHold(PlayerActionEvent caller, float state) @@ -95,6 +95,8 @@ namespace HeavenStudio.Games.Scripts_AnimalAcrobat SoundByte.PlayOneShotGame("animalAcrobat/giraffeReleaseLoop", beat, 1, 1, true).SetLoopParams(beat + 4, 0); MultiSound.Play(new MultiSound.Sound[] { + new MultiSound.Sound("animalAcrobat/ringOfFireCymbal", beat + 2), + new MultiSound.Sound("animalAcrobat/audienceCheer", beat + 2.25f), new MultiSound.Sound("animalAcrobat/flip", beat + 3), new MultiSound.Sound("cymbal", beat + 4) });