From 10e5c818abd4563c9ca6a979b23a272b258a35ed Mon Sep 17 00:00:00 2001 From: kimrdd Date: Sun, 4 Feb 2024 10:29:51 +0100 Subject: [PATCH] pausedisablesfornow --- Assets/Scripts/Player/PlayerAnimationHandler.cs | 2 +- Assets/Scripts/UI/PauseMenu.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/Player/PlayerAnimationHandler.cs b/Assets/Scripts/Player/PlayerAnimationHandler.cs index bf62282..38e4a82 100644 --- a/Assets/Scripts/Player/PlayerAnimationHandler.cs +++ b/Assets/Scripts/Player/PlayerAnimationHandler.cs @@ -17,7 +17,7 @@ public class PlayerAnimationHandler : MonoBehaviour } public void Run(bool state) { - animator.SetBool("IsRunning", state); + animator.SetBool("RunMop", state); } public void Swing(bool state) { diff --git a/Assets/Scripts/UI/PauseMenu.cs b/Assets/Scripts/UI/PauseMenu.cs index 68cae2e..34ca8ad 100644 --- a/Assets/Scripts/UI/PauseMenu.cs +++ b/Assets/Scripts/UI/PauseMenu.cs @@ -19,12 +19,12 @@ public class PauseMenu : MonoBehaviour } void Update() { - for (int i = 0; i < Gamepad.all.Count; i++) - Gamepad.all.ElementAtOrDefault(i); + //for (int i = 0; i < Gamepad.all.Count; i++) + // if(Gamepad.all[i].selectButton) // Check if the Escape key is pressed - if (Input.GetKeyDown(KeyCode.Escape) || PlayerInput.c) + if (Input.GetKeyDown(KeyCode.Escape)) { if (isPaused) {