bullet
This commit is contained in:
@@ -10,13 +10,13 @@ public class Shoot : MonoBehaviour
|
||||
[SerializeField] bool Pistole = true;
|
||||
void Start()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
if ( AR == true && Input.GetKey(KeyCode.Mouse0))
|
||||
|
||||
if (AR == true && Input.GetKey(KeyCode.Mouse0))
|
||||
{
|
||||
Shot(spawnPointAR);
|
||||
}
|
||||
@@ -28,7 +28,6 @@ public class Shoot : MonoBehaviour
|
||||
public void Shot(Transform spawnPoint)
|
||||
{
|
||||
GameObject bullet = Instantiate(bulletPrefab, spawnPoint.position, spawnPoint.rotation);
|
||||
bullet.transform.Rotate(90,0,0);
|
||||
Destroy(bullet, 2);
|
||||
bullet.transform.Rotate(90, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user