Files
defrain-shooter-unity/Assets/Scripts/Weapons/Weapon.cs
Noah4ever 5fd5f27ac6 Abstract Gun.cs & Weapon.cs
Gun.cs muss vlt noch umbenannt werden, weil Gun  Pistole heißt und nicht ein oberbegriff für alle Waffen ist.
2022-01-19 21:41:02 +01:00

26 lines
583 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Weapon : Gun
{
// Firerate of weapon
private float firerate;
// Strength of recoil
private float recoilStrength;
// Current ammunition in magazin
private int currentAmmunition;
// Full magazin Size
private int magazinSize;
// Total ammunition
private int totalAmmunition;
// Bullet exit (Muzzle)
private GameObject bulletExit;
// Allow action of weapon (shoot, reload, aim, drop, ...)
private bool allowAction;
// Getter
}