mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 12:52:07 +01:00
27 lines
584 B
C#
27 lines
584 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
|
|
|
|
|
|
}
|