fix: inspector target

develop
ChocoSwi 2022-11-06 00:51:26 +09:00
parent 9d4ae6aa58
commit 3320a4611e
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace SkyHook.Editor
{
public override void OnInspectorGUI()
{
SkyHookManager manager = (SkyHookManager)target;
SkyHookManager manager = SkyHookManager.Instance;
GUI.enabled = false;
EditorGUILayout.Toggle("Hook is running", manager.isHookActive);