From 7e305832ecb1586de9ca6210aa0ad5209922e26f Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Tue, 24 Jan 2023 11:05:11 +0100 Subject: [PATCH] Small mr upbeat fix --- Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs | 4 ++++ Assets/Scripts/Games/MrUpbeat/UpbeatMan.cs | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs index 75fc52077..87bdcc0db 100644 --- a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs +++ b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs @@ -103,6 +103,10 @@ namespace HeavenStudio.Games } queuedInputs.Clear(); } + if (PlayerInput.Pressed() && !IsExpectingInputNow(InputType.STANDARD_DOWN)) + { + man.Step(); + } } } diff --git a/Assets/Scripts/Games/MrUpbeat/UpbeatMan.cs b/Assets/Scripts/Games/MrUpbeat/UpbeatMan.cs index 0e482395f..444801109 100644 --- a/Assets/Scripts/Games/MrUpbeat/UpbeatMan.cs +++ b/Assets/Scripts/Games/MrUpbeat/UpbeatMan.cs @@ -23,14 +23,6 @@ namespace HeavenStudio.Games.Scripts_MrUpbeat public GameEvent blip = new GameEvent(); - private void Update() - { - if (PlayerInput.Pressed()) - { - Step(); - } - } - public void Idle() { stepTimes = 0;