From 8a6b1b93d56782b1236eefc03b7173a403e22b8b Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Mon, 26 Jun 2023 19:25:30 +0200 Subject: [PATCH] OOPS --- .../Games/NightWalkAgb/JumpPlatform.prefab | 2 +- .../Scripts/Games/NightWalkAgb/AgbPlatform.cs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Assets/Resources/Prefabs/Games/NightWalkAgb/JumpPlatform.prefab b/Assets/Resources/Prefabs/Games/NightWalkAgb/JumpPlatform.prefab index 79c3275cc..02c7518ca 100644 --- a/Assets/Resources/Prefabs/Games/NightWalkAgb/JumpPlatform.prefab +++ b/Assets/Resources/Prefabs/Games/NightWalkAgb/JumpPlatform.prefab @@ -241,7 +241,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!4 &9016694733661613840 Transform: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Games/NightWalkAgb/AgbPlatform.cs b/Assets/Scripts/Games/NightWalkAgb/AgbPlatform.cs index 8bdeb40f9..91320f2f8 100644 --- a/Assets/Scripts/Games/NightWalkAgb/AgbPlatform.cs +++ b/Assets/Scripts/Games/NightWalkAgb/AgbPlatform.cs @@ -248,6 +248,23 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk private void JustRollRelease(PlayerActionEvent caller, float state) { + if (isFish) + { + game.ScoreMiss(); + game.playYan.Shock(); + fish.DoScaledAnimationAsync("Shock", 0.5f); + handler.StopAll(); + handler.DestroyPlatforms(caller.timer + caller.startBeat + 2, endBeat - 2, endBeat + 6); + BeatAction.New(gameObject, new List() + { + new BeatAction.Action(caller.timer + caller.startBeat + 4, delegate + { + game.playYan.Fall(caller.timer + caller.startBeat + 4); + fish.DoScaledAnimationAsync("FishIdle", 0.5f); + }) + }); + return; + } if (state >= 1f || state <= -1f) { SoundByte.PlayOneShotGame("nightWalkAgb/ng");