chore: remove static from RequireFocus

develop
ChocoSwi 2022-11-05 23:27:35 +09:00
parent f13e1e985e
commit b55dd298ed
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace SkyHook
/// </summary>
// 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;
}