I have made a space shooter in unity3d but i dont want the rapid fire.I want only single fire.
My fire code
if (Input.GetKey(“space”))
{
Instantiate(bullet,socket.position,socket.rotation);
}
use GetKeyUp or GetKeyDown.
I have made a space shooter in unity3d but i dont want the rapid fire.I want only single fire.
My fire code
if (Input.GetKey(“space”))
{
Instantiate(bullet,socket.position,socket.rotation);
}
use GetKeyUp or GetKeyDown.