Example #1
0
        public override void OnRedo(TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.AddRange(backup.strokeRecord);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
Example #2
0
        public override void OnUndo(TextureBackup backup)
        {
            var toClear = recordedStrokesForUndoRedo.Count;

            recordedStrokes.RemoveLast(toClear);

            recordedStrokesForUndoRedo = backup.strokeRecord;
        }
Example #3
0
 public override void OnTextureBackup(TextureBackup backup)
 {
     backup.strokeRecord        = recordedStrokesForUndoRedo;
     recordedStrokesForUndoRedo = new List <string>();
 }
Example #4
0
 public virtual void OnTextureBackup(TextureBackup backup)
 {
 }
Example #5
0
 public virtual void OnRedo(TextureBackup backup)
 {
 }