How can an Animator FSM get public variables?,Making a Variable Holder for an FSM
I'd like to control a character using a finite state machine built in the animator.
However I would like specific variable like the speed of movement and public game objects (like locations) to be in a separate script on the character where I can access and assign them in the editor. Is there a good-practice way to access and change these variables in my StateMachineBehaviors?
Like let's say the script holding the variables (let's call it Foo) has a public float named 'speed'. I want my 'move to goal' StateMachineBehavior script to be able to use 'speed' when doing a translate. ,
Your answer
 
             Follow this Question
Related Questions
Animator trigger does not unchecked after the play of the state 0 Answers
Animation plays faster from default state than any other. 0 Answers
Animator GetBehavior Question 0 Answers
Is there any good examples or tutorials of using StateMachineBehaviour properly? 0 Answers
Why StateMachineBehaviour not calling OnStateExit when doing animator.Crossfade through code? 0 Answers