the error read - Assets/Fighter.cs(37,1): error CS8025: Parsing error
public class Fighter : MonoBehaviour
{
public GameObject opponent;
public AnimationClip attack;
public int damage;
// Use this for initialization
void Start ()
{
}
// Update is called once per frame
void Update ()
{
if (Input.GetKey (KeyCode.Space))
{
animation.Play (attack.name);
ClickToMove.attack= true;
if(opponent!=null)
{
transform.LookAt(opponent.transform.position);
opponent.GetComponents<Mob>().getHit(damage);
}
if(!animation.IsPlaying(attack.name))
{
ClickToMove.attack=false;
}
}
}