From a0231b6896566ce8595d1e2cd5d26b6792867ece Mon Sep 17 00:00:00 2001 From: miepzerino <o.skotnik@gmail.com> Date: Tue, 19 Dec 2023 00:02:24 +0000 Subject: [PATCH] Added pause panel --- Assets/Scripts/PlayerController.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 3072d38..7d13b2e 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -63,7 +63,8 @@ { get { - return animator.GetBool(AnimationStrings.canMove); + Debug.Log("gameIsPaused: " + PauseMenu.GameIsPaused); + return animator.GetBool(AnimationStrings.canMove) && !PauseMenu.GameIsPaused; } } -- Gitblit v1.9.3