|
@@ -4,6 +4,7 @@ using Routes;
|
|
|
using TrafficSimulation;
|
|
|
using UniRx.Triggers;
|
|
|
using UnityEditor;
|
|
|
+using UnityEditor.SceneManagement;
|
|
|
using UnityEngine;
|
|
|
[CustomEditor(typeof(IntersectionPreset))]
|
|
|
public class IntersectionPresetEditor : Editor
|
|
@@ -17,6 +18,7 @@ public class IntersectionPresetEditor : Editor
|
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
{
|
|
|
+ serializedObject.Update();
|
|
|
EditorGUILayout.LabelField("Traffic System");
|
|
|
EditorGUILayout.Space();
|
|
|
EditorGUILayout.PropertyField(serializedObject.FindProperty("trafficSystem"));
|
|
@@ -80,6 +82,7 @@ public class IntersectionPresetEditor : Editor
|
|
|
{
|
|
|
SetTrigger("out","l");
|
|
|
}
|
|
|
+ serializedObject.ApplyModifiedProperties();
|
|
|
}
|
|
|
|
|
|
private void PositionSpawns()
|