Unity 撤销还原

  • 源码的类图
classDiagram direction LR RecordContainer --> IRecordclass IRecord{ <> +Unod() +Redo() +OnRemove() +OnException(Exception ex) }class RecordContainer{ +Record(IRecord record) +Undo() +Redo() +Clear() }

  • Demo的类图
classDiagram IRecord <|-- DelRecord IRecord <|-- SpawnRecord RecordContainer --> IRecordclass IRecord{ <> }class DelRecord class SpawnRecordclass RecordContainer{ }

【Unity 撤销还原】github地址:https://github.com/pangdudu72...

    推荐阅读