I’m making a space sim and I’ve got my ship to shoot. But the problem is when I shoot, lasers are coming out at a rate too fast and they start colliding with each other and go off in random directions. How do I make it so they come out slower? Here’s my script.
var Laser : GameObject;
function Update ()
{
if(Input.GetButton("Fire1"))
{
Instantiate(Laser, transform.position, transform.rotation);
}
}