Fix: Exception on destroy if hook was never active

develop
CrackThrough 2022-11-18 18:03:51 +09:00
parent 116329ccd7
commit 96413ffac2
1 changed files with 4 additions and 1 deletions

View File

@ -174,9 +174,12 @@ namespace SkyHook
} }
private void OnDestroy() private void OnDestroy()
{
if (isHookActive)
{ {
_StopHook(); _StopHook();
} }
}
private void Update() private void Update()
{ {