public transform firepos;
public float speed;
public gameobject bullet;
public float waittime;
public float nextfiretime;
void FixedUpdate()
{
if(Time.time&&input.GetMouseButton(0))
{
nextfiretime=Time.time+waittime;
instaite(bullet,firepos.position,firepos.rotation);
}
}
网友评论