- Home /
Question by
InvalidNickname · Feb 22, 2014 at 03:51 PM ·
error messagebce0044
expecting EOF, found '}'. (BCE0044)
var Range = Mathf.Infinity;
var ShootAnim = "";
var ReloadAnim = "";
var ArmsAndGun : GameObject;
var ShootParticle : GameObject;
function Update () {
if(Input.GetMouseButtonDown(0)){
RayShoot () ;
}
}
var hit : RaycastHit;
var direction = transform.forward;
if(Physics.Raycast(transform.position,direction,hit,range)){
if(hit.collider.gameObject.tag == "Untagged"){
Instantiate(ShootParticle, hit.point ,transform.rotation);
}
}
} <<<<<<<<<<<<<<<(the error is in this line)>>>>>>>>>>>>>>>>>
Comment
Answer by whydoidoit · Feb 22, 2014 at 03:52 PM
You have an extra "}" at the end of your Update function, delete it.
Answer by Linus · Feb 22, 2014 at 04:18 PM
Remove the } on line 11 And perhaps the last one you ended the Update function
Your answer
