Unity 撤销还原

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

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

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

你可能感兴趣的:(unityc#)