From 41805eef9a5b8b29180e274af2e922df9fa42bfa Mon Sep 17 00:00:00 2001 From: blank3times <105398129+blank3times@users.noreply.github.com> Date: Wed, 24 Jan 2024 18:13:40 -0800 Subject: [PATCH] Pretend to add mandrill It doesn't do anything except play sounds --- Assets/Scripts/Games/HoleInOne/HoleInOne.cs | 47 +++++++++++++++++++-- 1 file changed, 44 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Games/HoleInOne/HoleInOne.cs b/Assets/Scripts/Games/HoleInOne/HoleInOne.cs index e73b4045d..5880a25a8 100644 --- a/Assets/Scripts/Games/HoleInOne/HoleInOne.cs +++ b/Assets/Scripts/Games/HoleInOne/HoleInOne.cs @@ -21,6 +21,10 @@ namespace HeavenStudio.Games.Loaders new GameAction("testanims", "Test Animation") { function = delegate { HoleInOne.instance.DoTestAnim(eventCaller.currentEntity.beat); }, + }, + new GameAction("mandrill", "Mandrill (no visuals)") + { + function = delegate { HoleInOne.instance.DoMandrill(eventCaller.currentEntity.beat); }, } }//, // new List() { "rvl", "normal" }, @@ -56,10 +60,47 @@ namespace HeavenStudio.Games { SoundByte.PlayOneShotGame("holeInOne/whale"); + BeatAction.New(instance, new List() + { + new BeatAction.Action(beat, delegate { Monkey.DoScaledAnimationAsync("MonkeySpin", 0.5f);}), + }); + } + + + + public void DoMandrill(double beat) + { + //Far Drop Multisound + ScheduleInput(beat, 3f, InputAction_BasicPress, CatchSuccess, CatchSuccess1, CatchSuccess2); + MultiSound.Play(new MultiSound.Sound[] { + new MultiSound.Sound("holeInOne/mandrill1", beat), + new MultiSound.Sound("holeInOne/mandrill2", beat + 1f), + new MultiSound.Sound("holeInOne/mandrill3", beat + 2f), + new MultiSound.Sound("holeInOne/mandrill4", beat + 3f), + }); + // BeatAction.New(instance, new List() - // { - // new BeatAction.Action(beat, delegate { Monkey.DoScaledAnimationAsync("MonkeySpin", 0.5f);}), - // }); + // { + // new BeatAction.Action(beat, delegate { FarCrane.DoScaledAnimationAsync("Drop", 0.5f);}), + // new BeatAction.Action(beat + 1.0f, delegate { FarCrane.DoScaledAnimationAsync("Open", 0.5f);}), + // new BeatAction.Action(beat + 1.5f, delegate { FarCrane.DoScaledAnimationAsync("Lift", 0.5f);}), + // }); + + } + + public void CatchSuccess(PlayerActionEvent caller, float state) + { + SoundByte.PlayOneShotGame("holeInOne/whale"); + } + + public void CatchSuccess1(PlayerActionEvent caller) + { + SoundByte.PlayOneShotGame("holeInOne/whale"); + } + + public void CatchSuccess2(PlayerActionEvent caller) + { + SoundByte.PlayOneShotGame("holeInOne/whale"); } } } \ No newline at end of file