Beispiel #1
0
    public override void DoUndo()
    {
        HistoryMarkersChange.RegisterMarkers = new MapLua.SaveLua.Marker[Markers.Length];
        for (int i = 0; i < Markers.Length; i++)
        {
            HistoryMarkersChange.RegisterMarkers[i] = Markers[i].Marker;
        }

        HistoryMarkersChange.GenerateRedo(Undo.Current.Prefabs.MarkersChange).Register();
        DoRedo();
    }
 public void RegisterMarkerChange(MapLua.SaveLua.Marker[] AllMarkers)
 {
     HistoryMarkersChange.RegisterMarkers = AllMarkers;
     HistoryMarkersChange.GenerateUndo(Prefabs.MarkersChange).Register();
 }