Well I'm learning how to work with Animation parameters in Unity (I come from a Flash AS3 Background). As you can see below my goal is to get my GameObject
's animation to state jump
. I have the created animation parameter Boo
set to false, and my intention is to change it to true in the Unityscript code. The name of the GameObject
's animation controller is simply controller
.
But the Console is telling me that they are expecting a Semicolon! As you can see there is no lack of Semicolons in my script. What is the problem here? If there is any other information that you might find helpful for solving this issue I'll be glad to post it.
var animator: Animator; animator.SetBool("Boo", true);
........animator
....notcontroller
because it is not a Component........docs.unity3d.com/ScriptReference/Animator.html – Alexey Shimansky