TheGuidebook

Command Pattern

The Command Pattern

If the question is “How do I add an undo feature?”, then the command pattern is your answer.

Implementing a Command Pattern in Unity

The code can be found here: https://github.com/hunterdyar/UnitySimpleSokabon.

Command Pattern video by Infallible Code