Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Update AIBrainGeneratorEditor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosecchi committed Dec 16, 2019
1 parent 2a516e4 commit 9c26fc7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Scripts/AI/Graph/Editor/AIBrainGeneratorEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,17 @@ public override void OnInspectorGUI()
EditorGUILayout.PropertyField(_generateDebugBrain);
serializedObject.ApplyModifiedProperties();

EditorGUILayout.HelpBox(C.WARNING_GENERATE_SCRIPTS, MessageType.Warning);

if(GUILayout.Button(C.LABEL_GENERATE))
{
_generator.Generate();
}


EditorGUILayout.HelpBox(C.WARNING_GENERATE_SCRIPTS, MessageType.Warning);

if(GUILayout.Button(C.LABEL_REMOVE_AI_SCRIPTS))
{
_generator.Cleanup();
}

}
}
}

0 comments on commit 9c26fc7

Please sign in to comment.