Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Semicolon error using JS

$
0
0
Well I added semicolon already. Error at (18,46) #pragma strict var Bullet : Rigidbody; var Spawn : Transform; var BulletSpeed : float = 1000; function Start () { } function Update () { if(Input.GetButtonDown("Fire1")){ Fire(); } } function Fire(){ var bullet1 : Rigidbody = (Rigidbody)Instantiate(Bullet,Spawn.position,Spawn.rotation); bullet1.AddForce(transform.forward *BulletSpeed); }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>