Esempio n. 1
0
 public void HandleUndo(EditorSceneBase scene)
 {
     if (TryGetRevertable(out IRevertable revertable))
     {
         scene.AddToUndo(revertable);
     }
 }
 public void HandleUndo(EditorSceneBase scene)
 {
     foreach (CapturedProperty cp in capturedProperties)
     {
         if (!cp.info.GetValue(obj).Equals(cp.value))
         {
             scene.AddToUndo(new RevertablePropertyChange(cp.info, obj, cp.value));
         }
     }
 }