private void OnMoveMap(RequestPathingExample targ) { targ.moveMap.LoadFromCSV(); targ.moveMapVisualizer.RebuildVisual(); targ.ResetCurrMap(); Debug.Log("Loaded MoveMap, rebuilt visuals, removed old PathMap feedback"); }
public override void OnInspectorGUI() { RequestPathingExample targ = (RequestPathingExample)target; EditorStyles.label.wordWrap = true; DisplayHelpBox(); EditorGUILayout.Space(10); if (GUILayout.Button("Reload CSV into MoveMap")) { OnMoveMap(targ); } if (GUILayout.Button("Request and display PathMap")) { OnPathMap(targ); } EditorGUILayout.Space(20); base.OnInspectorGUI(); }
private void OnPathMap(RequestPathingExample targ) { targ.RequestPathMap(); Debug.Log("Requested PathMap and drew feedback"); }