Example #1
0
 public void TrackChangeAction(UndoableActionType type, UnityEngine.Object target, object from, object to)
 {
     // if you change something redo is cleared
     availableRedos.Clear();
     // Add this action do undoable actions
     availableUndos.Push(new UndoableAction(type, target, from, to));
 }
Example #2
0
 public UndoableAction(UndoableActionType type, UnityEngine.Object target, object from, object to)
 {
     Type   = type;
     Target = target;
     From   = from;
     To     = to;
 }
Example #3
0
 public UndoableAction(UndoableActionType type, Object target, object from, object to)
 {
     Type        = type;
     this.target = target;
     this.from   = from;
     this.to     = to;
 }