关于unity:Unity-撤销还原

44次阅读

共计 402 个字符,预计需要花费 2 分钟才能阅读完成。

  • 源码的类图
classDiagram
    direction LR
    RecordContainer --> IRecord

    class IRecord{
    <<interface>>
    +Unod()
    +Redo()
    +OnRemove()
    +OnException(Exception ex)
    }
    
    class RecordContainer{+Record(IRecord record)
    +Undo()
    +Redo()
    +Clear()}
  • Demo 的类图
classDiagram
    IRecord <|-- DelRecord
    IRecord <|-- SpawnRecord
    RecordContainer --> IRecord
    
    class IRecord{<<interface>>}
    
    class DelRecord
    class SpawnRecord
    
    class RecordContainer{}

github 地址:https://github.com/pangdudu72…

正文完
 0