Example #1
0
 private void Awake()
 {
     if (!Instance)
     {
         Instance = this;
         DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         Destroy(this.gameObject);
     }
 }
Example #2
0
 public OperationWrapper(ThisAddIn addIn)
 {
     _addIn          = addIn;
     _statePreserver = addIn.Application.StatePreserver().FreezeScreenUpdating();
     _undoer         = new UndoerRedoer(addIn.ActiveDocument).TrackChanges();
 }