DisabledUndo.cs 599 B

12345678910111213141516171819
  1. using UnityEngine;
  2. namespace UnityEditor.U2D.Animation
  3. {
  4. internal class DisabledUndo : IUndo
  5. {
  6. public void RecordObject(object o, string name) {}
  7. public void RegisterCompleteObjectUndo(object o, string name) {}
  8. public void RegisterCompleteObjectUndo(object[] o, string name) {}
  9. public void RegisterCreatedObjectUndo(object o, string name) {}
  10. public void DestroyObjectImmediate(object o)
  11. {
  12. BaseObject.DestroyImmediate(o);
  13. }
  14. public void ClearUndo(object o) {}
  15. public void IncrementCurrentGroup() {}
  16. }
  17. }