Compare commits

..

No commits in common. "36bc0f8b0e6fc760c27e967f0301b485c8e1a569" and "9d4ae6aa5804045ebcec254705e21f97be60b206" have entirely different histories.

1 changed files with 1 additions and 8 deletions

View File

@ -10,7 +10,7 @@ namespace SkyHook.Editor
{
public override void OnInspectorGUI()
{
SkyHookManager manager = SkyHookManager.Instance;
SkyHookManager manager = (SkyHookManager)target;
GUI.enabled = false;
EditorGUILayout.Toggle("Hook is running", manager.isHookActive);
@ -22,13 +22,6 @@ namespace SkyHook.Editor
EditorGUILayout.Toggle("Focused", SkyHookManager.IsFocused);
GUI.enabled = true;
GUI.enabled = EditorApplication.isPlaying;
if (GUILayout.Button(manager.isHookActive ? "Stop Hook" : "Start Hook"))
{
if(manager.isHookActive) SkyHookManager.StopHook();
else SkyHookManager.StartHook();
}
GUI.enabled = true;
}
}
}