Programming a BETTER state machine
iHeartGameDev iHeartGameDev
74.9K subscribers
57,028 views
0

 Published On Oct 5, 2023

Take your programming skills to the next level and learn how to build a better state machine in this brand new tutorial and break down!

This tutorial explains how we can create a reusable state machine in C# by implement abstract classes and generics! It also breaks down core pieces of any state machine with helpful visuals and explanations.

This video is also a continuation of the procedural animation and environment interaction series on the channel. We'll utilize these two abstract classes when building out the environment interaction state machine!

SUPPORT THE CHANNEL AND GET EXCLUSIVE PERKS:
💛   / iheartgamedev   (Project Files Available)
❤️ https://www.youtube.com/iHeartGameDev...

WANT MORE?
Interested in learning more about animating characters in Unity? Check out my growing series of tutorials:
✅    • Programming For Production  
✦ Like the vid? Please consider Subscribing!
https://bit.ly/2YdIb6j
✦ Missed out on the last episode?
   • How to Move Characters in Unity 3D: A...  

SOCIAL:
✦ Discord
  / discord  
✦ Twitter
  / iheartgamedev  

►TIMESTAMPS:
Intro: 0:00
The Problem: 0:10
Setup: 0:34
BaseState: 0:45
Generics Explained: 1:32
BaseState Continued: 2:26
State Manager Implementation: 2:49
Why this is awesome: 8:48
Question to the community: 9:18

#unity3d #designpatterns #gamedev

show more

Share/Embed