public static void Init(AttackDefinition attack)
        {
            AttackDefinitionEditorWindow window =
                ScriptableObject.CreateInstance <AttackDefinitionEditorWindow>();

            window.attack = attack;
            window.Show();
        }
        public static void Init(AttackDefinition attack)
        {
            AttackDefinitionEditorWindow window =
                (AttackDefinitionEditorWindow)EditorWindow.GetWindow(typeof(AttackDefinitionEditorWindow));

            window.attack = attack;
            window.Show();
        }
        public override void OnInspectorGUI()
        {
            if (GUILayout.Button("Open Editor", GUILayout.Width(Screen.width), GUILayout.Height(45)))
            {
                AttackDefinitionEditorWindow.Init(target as AttackDefinition);
            }

            DrawDefaultInspector();
        }