Skip to content

Commit

Permalink
Del WaypointBehaviour usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermesiss committed Mar 20, 2019
1 parent f70d33f commit 74e50b9
Show file tree
Hide file tree
Showing 6 changed files with 17,229 additions and 686 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ public override void OnInspectorGUI()
return;
}

navManager.WaypointPrefab =
/*navManager.WaypointPrefab =
EditorGUILayout.ObjectField("Prefab", navManager.WaypointPrefab, typeof(WaypointBehaviour), false) as
WaypointBehaviour;
WaypointBehaviour;*/
//navManager.CalculateWaypoints();
serializedObject.Update();
var gradient = serializedObject.FindProperty("GradientForWaypoints");
Expand Down Expand Up @@ -141,7 +141,7 @@ public override void OnInspectorGUI()

EditorGUILayout.BeginHorizontal(EditorStyles.boldLabel);
{
if (navManager.WaypointPrefab == null) GUI.enabled = false;
/*if (navManager.WaypointPrefab == null) GUI.enabled = false;*/
if (GUILayout.Button(
new GUIContent(_currentMode == Mode.Add ? "x" : "+", "Hold shift to add to the end"),
GUILayout.Width(30)))
Expand All @@ -156,7 +156,7 @@ public override void OnInspectorGUI()
}

GUI.enabled = true;
if (navManager.WaypointPrefab == null) GUILayout.Label("You must add prefab!", EditorStyles.helpBox);
/*if (navManager.WaypointPrefab == null) GUILayout.Label("You must add prefab!", EditorStyles.helpBox);*/
}
EditorGUILayout.EndHorizontal();

Expand Down
Loading

0 comments on commit 74e50b9

Please sign in to comment.