コード例 #1
0
    public void Execute(object data)
    {
        Lane targetLane = (Lane)data;

        RoadPositionRecords.DeleteLanes(new List <Lane> {
            targetLane
        });

        deleted = targetLane;
    }
コード例 #2
0
 public void Undo()
 {
     RoadPositionRecords.DeleteLanes(added);
     RoadPositionRecords.RestoreLanes(deleted);
 }