Question by
lexmcnevan · Aug 08, 2016 at 12:30 PM ·
javascriptscripting problemanimatorscriptingbasics
Animator javascript
So I have my character and a trigger parameter in the animator called "gethit" and I want my caracter to change from the idle position to a getting hit state. I've made this Javascript:
and there's the error "'SetTrigger' is not member of 'System.Type'". How can I fix it? I usually use C# when it involves animator but Javascript when it involves "OnTriggerEnter" functions, so I think I'm mixing languages
HELP PLEASE!!
settrigger.png
(25.5 kB)
Comment
Your answer
Follow this Question
Related Questions
How would i set the player var? 0 Answers
Can not get my raycast to detect an object 0 Answers
OnCollisonEnter2D Not Firing after checking collider 1 Answer
BCE0020 error with animation 1 Answer
Attack Script 2 Answers