mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-10-31 13:37:08 +01:00 
			
		
		
		
	Weapon usw.
etc....
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Noah4ever
					Noah4ever