Hi please help me i have a problem with my gun script
var Bullet: Transform;
function Update () {
if(Input.GetKey(¨Fire1¨)){
var ShootBullet = Instantiate(Bullet,GameObject.Find(¨Bullet_spawn¨).transform.position,Quaternion.identity);
bullet.rigidbody.AddForce(transform.Forward *20000);
}
}
Error Code: Assets/Gun_Shoot_Code.js(4.21): BCE0044: unexpected char: 0xA8
The error say that its at:
if(Input.GetKey(¨Fire1¨)){
I took the code from this 1
If you find a other thing that may cause a error then please replay.