void Update()
{
if (Input.GetButtonDown("Fire1"))
{
GameObject newBullet;
newBullet = Instantiate(bullet, spawnPoint.position, spawnPoint.rotation);
↧