pausedisablesfornow

This commit is contained in:
kimrdd 2024-02-04 10:29:51 +01:00
parent 043c7142f7
commit 10e5c818ab
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ public class PlayerAnimationHandler : MonoBehaviour
} }
public void Run(bool state) public void Run(bool state)
{ {
animator.SetBool("IsRunning", state); animator.SetBool("RunMop", state);
} }
public void Swing(bool state) public void Swing(bool state)
{ {

View File

@ -19,12 +19,12 @@ public class PauseMenu : MonoBehaviour
} }
void Update() void Update()
{ {
for (int i = 0; i < Gamepad.all.Count; i++) //for (int i = 0; i < Gamepad.all.Count; i++)
Gamepad.all.ElementAtOrDefault(i); // if(Gamepad.all[i].selectButton)
// Check if the Escape key is pressed // Check if the Escape key is pressed
if (Input.GetKeyDown(KeyCode.Escape) || PlayerInput.c) if (Input.GetKeyDown(KeyCode.Escape))
{ {
if (isPaused) if (isPaused)
{ {