chore: remove static from RequireFocus
parent
f13e1e985e
commit
b55dd298ed
|
@ -17,7 +17,7 @@ namespace SkyHook
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// ReSharper disable once MemberCanBePrivate.Global
|
// ReSharper disable once MemberCanBePrivate.Global
|
||||||
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
// ReSharper disable once FieldCanBeMadeReadOnly.Global
|
||||||
public static bool RequireFocus = true;
|
public bool requireFocus = true;
|
||||||
|
|
||||||
public bool isHookActive;
|
public bool isHookActive;
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ namespace SkyHook
|
||||||
|
|
||||||
private void HookCallback(SkyHookEvent ev)
|
private void HookCallback(SkyHookEvent ev)
|
||||||
{
|
{
|
||||||
if (RequireFocus && !_isFocused)
|
if (requireFocus && !_isFocused)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ namespace SkyHook
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
if (RequireFocus)
|
if (requireFocus)
|
||||||
{
|
{
|
||||||
_isFocused = Application.isFocused;
|
_isFocused = Application.isFocused;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue