Exemple #1
0
 protected virtual void OnEnable()
 {
     wantsMouseMove = true;
     if (mUndoRedoMarker == null)
     {
         mUndoRedoMarker = CreateInstance <UndoRedoMarker>();
     }
     Undo.undoRedoPerformed  -= OnUndoRedoPerformed;
     Undo.undoRedoPerformed  += OnUndoRedoPerformed;
     Command.onCommandPushed -= OnCommandPushed;
     Command.onCommandPushed += OnCommandPushed;
 }
Exemple #2
0
 private void OnEnable()
 {
     marker = CreateInstance <UndoRedoMarker>();
 }