add: minigun

bug: minigun's mesh
This commit is contained in:
KOSMOGOR
2025-04-27 17:35:06 +03:00
parent 15ea51e465
commit f754b692e2
12 changed files with 541 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ public class Rifle : Weapon
[SerializeField] float currentDelay = 0;
public override void Shoot(bool keyDown, bool keyHold) {
if (keyHold && (fireRate == 0 || currentDelay >= 1 / fireRate) && GameController.i.ConsumeBullet(BulletType.Rifle)) {
if (keyHold && (fireRate == 0 || currentDelay >= 1 / fireRate) && GameController.i.ConsumeBullet(bulletType)) {
Instantiate(projectilePrefab, spawnPosition.position, spawnPosition.rotation);
currentDelay = 0;
}