Fix shooting issues. Setup the environment form demo presentation

This commit is contained in:
Emil Shanaty
2025-03-10 17:33:50 +03:00
parent a449b7bb9e
commit f6c161f0d0
18 changed files with 858 additions and 208 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ public class Pistol : Weapon
public override void Shoot(bool keyDown, bool keyHold) {
if (keyDown && (fireRate == 0 || currentDelay == 1 / fireRate)) {
Instantiate(projectilePrefab, spawnPosition.position, transform.rotation);
Instantiate(projectilePrefab, spawnPosition.position, spawnPosition.rotation);
currentDelay = 0;
}
}