This commit is contained in:
2026-08-20 11:10:17 +02:00
parent 8cd4da3aad
commit d27b860d72
4 changed files with 12 additions and 78 deletions
+4 -5
View File
@@ -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);
}
}