The command pattern encapsulates commands from the systems that execute or undo those commands. This is useful in asynchronous applications and is useful to create undo and redo functionality.
0:00 Intro
2:25 ICommand Interface
3:00 Move Command
4:00 Turn-Based Input Manager
5:06 Turn-Based Character Controller
6:00 Undo System
7:28 Redo System
9:15 Command Handler
10:43 Final Thoughts
11:23 THE END
Programming Pattern Files: github.com/onewheelstudio/Pro...
Become A Channel Member: / @onewheelstudio
T-Shirts: onewheelstudio.com/merch/
My video and streaming kit: kit.co/onewheelstudio/tutoria...
Recommended Game Design Books: kit.co/onewheelstudio/game-de...
Discord: discord.onewheelstudio.com
Patreon: / onewheelstudio
Twitter: / onewheelstudio
Devlog: onewheelstudio.com/
Twitch: / onewheelstudio
#Programming Patterns #CommandPattern #GameDevelopment #cleancode #unity3d
Негізгі бет Undo and Redo with the Command Pattern - C# and Unity
Пікірлер: 32