From a166fe286116e08b63b3839d9facb2115cf94fa7 Mon Sep 17 00:00:00 2001 From: Mausham Date: Mon, 15 Dec 2025 18:34:06 -0800 Subject: [PATCH] Managed INput --- AGENTS.md | 4 ---- Assets/Scripts/Input/InputReaderSO.cs | 7 ++----- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 56abd43..3f0b681 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,8 +1,4 @@ - Project name: Ultimate-HelixJump - Unity version: Unity 6000.3.0f1 -- Active game object: - - Name: PlatformManager - - Tag: Untagged - - Layer: Default \ No newline at end of file diff --git a/Assets/Scripts/Input/InputReaderSO.cs b/Assets/Scripts/Input/InputReaderSO.cs index 46fbb57..8fc68b5 100644 --- a/Assets/Scripts/Input/InputReaderSO.cs +++ b/Assets/Scripts/Input/InputReaderSO.cs @@ -25,7 +25,6 @@ public class InputReaderSO : ScriptableObject, GameInputAction.IPlayerActions , if(action == null) action = new GameInputAction(); action.Enable(); action.Player.SetCallbacks(this); - blockedInput = false; isMouseButtonPressed= false; } @@ -36,9 +35,7 @@ public class InputReaderSO : ScriptableObject, GameInputAction.IPlayerActions , public void OnDrag(InputAction.CallbackContext context) { - if (blockedInput) return; dragInput = context.ReadValue(); - } public void OnMouseClicked(InputAction.CallbackContext context) @@ -48,11 +45,11 @@ public class InputReaderSO : ScriptableObject, GameInputAction.IPlayerActions , public void LockInput() { - blockedInput = true; + action.Player.Disable(); } public void UnlockInput() { - blockedInput = false; + action.Player.Enable(); } }