As the title explains, none of the below variables are showing in inspector, why ?
function Update () {
var speed = 0; //variable for setting the speed of the bullet.
var bulletPrefab:Transform;
var h = Input.GetAxisRaw(“Fire1”);
// if theres keyboard input fire the bullet
if(h)
{
Instantiate(bulletPrefab, GameObject.Find(“bulletSpawnPoint”).transform.position, Quaternion.identity);
bulletPrefab.transform.Translate(Vector3(0,0,h + speed));
}
}