Hi, i know it is a frequently asked question, but i am a lost beginner. I have this (22,13): UCE0001: ‘;’ expected. Insert a semicolon at the end. and i don’t understand, i have already a semicolon on this line.
#pragma strict
var animator : Animator;
animator.SetBool("Punching", false);
function Start ()
{
animator = this.GetComponent(Animator);
}
function Update ()
{
if (Input.GetKeyDown(KeyCode.G))
{
animator.SetBool("Punching", true);
StartCoroutine("StopAnimation");
}
IEnumerator StopAnimation()
{
yield return new WaitForSeconds(0.5);
anim.SetBool("Punching", false);
}
}
Can you help me please, thanks in advance!