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)); }
public UndoableAction(UndoableActionType type, UnityEngine.Object target, object from, object to) { Type = type; Target = target; From = from; To = to; }
public UndoableAction(UndoableActionType type, Object target, object from, object to) { Type = type; this.target = target; this.from = from; this.to = to; }