In this video, we're going to build a flexible and efficient object-oriented state machine in Unity using C#. The days of using an enum state machine are OVER! This tutorial covers everything from defining states, implementing transitions and predicates and moving between animations using code, all with SOLID principles and the State and Strategy programming patterns. Master these concepts, and you'll be well-equipped to design advanced, reusable state machines for your game projects.
🔔 Subscribe for more Unity Tutorials / @git-amend
#unity3d #gamedev #indiedev #statemachine #3dplatformer
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Intro
1:00 Overview
2:13 States
3:55 Predicates
5:00 Transitions
5:44 State Machine
10:00 Refactoring
14:40 Demo
15:30 Challenge
20:17 Challenge Demo
Source code: https://github.com/adammyhre/3D-Platf...
Open Source Used In This Video
https://github.com/KyleBanks/scene-re...
Assets Used In This Project (Affiliate Links)
Dungeon Mason Tiny Hero Duo: (FREE): https://assetstore.unity.com/packages...
MeshTint Burrow (FREE): https://assetstore.unity.com/packages...
Cartoon Remaster VFX (FREE): https://assetstore.unity.com/packages...
Casual Game SFX (FREE): https://assetstore.unity.com/packages...
Ultimate Low Poly Pack: https://assetstore.unity.com/packages...
DOTween (FREE): https://assetstore.unity.com/packages...
DOTween (Pro): https://assetstore.unity.com/packages...
Follow me!
https://linktr.ee/gitamend