From 3fd839b155aea37592a50ded2e2c862291a0e67f Mon Sep 17 00:00:00 2001 From: Hazim Bin Ijaz Date: Thu, 9 Jan 2025 19:04:23 +0500 Subject: [PATCH] Added Movement stop on S key --- Assets/Scripts/Gameplay/UserInput/ClientInputSender.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/Scripts/Gameplay/UserInput/ClientInputSender.cs b/Assets/Scripts/Gameplay/UserInput/ClientInputSender.cs index 6e4e843..8da68da 100644 --- a/Assets/Scripts/Gameplay/UserInput/ClientInputSender.cs +++ b/Assets/Scripts/Gameplay/UserInput/ClientInputSender.cs @@ -553,6 +553,10 @@ namespace Unity.BossRoom.Gameplay.UserInput m_MoveRequest = true; // Accept movement request } + if (Input.GetKeyDown(KeyCode.S) && m_ServerCharacter.Movement.IsMoving()) + { + m_ServerCharacter.Movement.CancelMove(); + } if (!EventSystem.current.IsPointerOverGameObject() && m_CurrentSkillInput == null) { if (IsSwapModeActive && Input.GetMouseButtonDown(0)) // Left-click to request swap