- Home /
Question by
thesteveno9 · Dec 05, 2013 at 10:20 PM ·
Script has Not Finished Compiling Error
using UnityEngine;
using System.Collections;
public class Shoot : MonoBehaviour {
public Rigidbody bulletPrefab;
public Transform spawnPoint;
public int speed;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKey(KeyCode.Mouse0))
{
Rigidbody bulletInstance;
bulletInstance = Instantiate(bulletPrefab, spawnPoint.position, bulletPrefab.transform.rotation) as Rigidbody;
bulletInstance.AddForce(spawnPoint.forward * speed);
}
}
}
Please Help!!!!!!!!!
Comment
I don't see a problem, this script compiles fine for me. I suggest looking elsewhere for your problem.