The state pattern is a programming pattern that is also known as a Finite State Machine or FSM is a pattern that can be very useful for systems with a small to a medium number of distinct states or behaviors. The pattern can help to clean up and make it very clear exactly WHAT code is running.
Game Programming Pattern Book (affiliate): https://amzn.to/315mVBg
Blog Post on State Pattern: https://onewheelstudio.com/blog/2020/6/16/the-state-pattern
Project Files: https://github.com/onewheelstudio/Programming-Patterns
Become A Channel Member: https://www.youtube.com/channel/UCkr9CPPqT9VWUjkpo3HcACg/join
My video and streaming kit: https://kit.co/onewheelstudio/tutorial-video-production
Timecodes
Intro
0:00
Project Description
0:50
Programming with IFs
1:10
State Pattern Simple
2:04
State Pattern Class-Based
5:03
Final Thoughts
8:52
Outtakes
9:52
Discord: http://discord.onewheelstudio.com
Patreon: https://www.patreon.com/onewheelstudio
Twitter: https://twitter.com/OneWheelStudio
Devlog: https://onewheelstudio.com/
Twitch: https://go.twitch.tv/onewheelstudio
#UnityTutorial #GameDevelopment #programmingpatterns #csharp #statepattern #finitiestatemachine #fsm