public override void DoUndo()
 {
     if (!RedoGenerated)
     {
         HistoryTerrainHeight.GenerateRedo(Undo.Current.Prefabs.TerrainWaterSettingsChange).Register();
     }
     RedoGenerated = true;
     DoRedo();
 }
예제 #2
0
 public override void DoUndo()
 {
     if (!RedoGenerated)
     {
         //Undo.UndoData_newheights = ScmapEditor.Current.Teren.terrainData.GetHeights(0, 0, ScmapEditor.Current.Teren.terrainData.heightmapWidth, ScmapEditor.Current.Teren.terrainData.heightmapHeight);
         ScmapEditor.GetAllHeights(ref Undo.UndoData_newheights);
         HistoryTerrainHeight.GenerateRedo(Undo.Current.Prefabs.TerrainHeightChange).Register();
     }
     RedoGenerated = true;
     DoRedo();
 }