Weapon usw.

etc....
This commit is contained in:
Noah4ever
2021-11-09 13:58:34 +01:00
parent a8d816b639
commit 6e13025624
10 changed files with 402 additions and 332 deletions

View File

@@ -20,8 +20,7 @@ public class Ammunition : MonoBehaviour
public bool subtractAmmunition(Weapon weapon)
{
if (weapon.CurrentAmmunition > 0) {
weapon.CurrentAmmunition -= weapon.RoundsPerShot;
Debug.Log(weapon.CurrentAmmunition + " - " + weapon.RoundsPerShot);
weapon.CurrentAmmunition -= 1;
return true;
}
return false;