Skip to content

Commit

Permalink
Record changes to signal ID
Browse files Browse the repository at this point in the history
  • Loading branch information
daviduhm authored and lokesku committed Aug 28, 2020
1 parent 4a94d37 commit dc173a2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Assets/Scripts/Map/MapSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Linq;
using Simulator.Utilities;
using Simulator.Controllable;
Expand Down Expand Up @@ -37,7 +38,13 @@ public class MapSignal : MapData, IControllable, IMapType
public string id
{
get { return _id; }
set { _id = value; }
set
{
#if UNITY_EDITOR
Undo.RecordObject(this, "Changed signal ID");
#endif
_id = value;
}
}

public string Key => UID;
Expand Down

0 comments on commit dc173a2

Please sign in to comment.