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