As a junior in coding is difficult to understand when to use the different State methods to control behaviors and why are so different.
Some examples of state methods
- Simple if( state == “…”) statements and myStateFunction() in it.
- The script Unity tutorial switch (state) Statement
- The grate Unity class State Machine Behaviour use in animation (is only use for animation?)
- The more advance code “Intro to State Machines” made yesterday in the Unity excellent live online training course by Matthew Schell.
- Or others state codes (examples: the Rachel Cordone book, asset store, etc)
Thanks for your time!