- Home /
Question by
Camando360 · Feb 21, 2012 at 10:20 PM ·
animation
Play animation function
So i'm making a script that will call an animation in game when a button is pressed. (Left mouse button in this case) here is the script i made:
var Animation Chop;
function Update () {
if (Input.GetButtonDown ("Fire1")) { animation.Play(Chop); } }
I get a pleases insert semicolon error so there is obviously something wrong with the code. I think it has something to do with the variable deceleration as i have had issues with it in the past. I would be most grateful for any help.
Comment