From b55dd298ed52d121251189eddb749220597e510b Mon Sep 17 00:00:00 2001 From: ChocoSwi Date: Sat, 5 Nov 2022 23:27:35 +0900 Subject: [PATCH] chore: remove static from RequireFocus --- Runtime/SkyHookManager.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/SkyHookManager.cs b/Runtime/SkyHookManager.cs index 3c054e2..63d29b9 100644 --- a/Runtime/SkyHookManager.cs +++ b/Runtime/SkyHookManager.cs @@ -17,7 +17,7 @@ namespace SkyHook /// // ReSharper disable once MemberCanBePrivate.Global // ReSharper disable once FieldCanBeMadeReadOnly.Global - public static bool RequireFocus = true; + public bool requireFocus = true; public bool isHookActive; @@ -49,7 +49,7 @@ namespace SkyHook private void HookCallback(SkyHookEvent ev) { - if (RequireFocus && !_isFocused) + if (requireFocus && !_isFocused) { return; } @@ -122,7 +122,7 @@ namespace SkyHook private void Update() { - if (RequireFocus) + if (requireFocus) { _isFocused = Application.isFocused; }