public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     if (GUILayout.Button("Open Editor"))
     {
         GameManagerEditorWindow.Open((GameManager)target);
     }
 }
    public static bool OpenEditor(int instanceId, int line)
    {
        GameManager obj = EditorUtility.InstanceIDToObject(instanceId) as GameManager;

        if (obj != null)
        {
            GameManagerEditorWindow.Open(obj);
            return(true);
        }
        return(false);
    }