11 lines
596 B
C#
11 lines
596 B
C#
using UnityEngine;
|
|
|
|
public class Weapon : MonoBehaviour
|
|
{
|
|
public GameObject muzzleFlare; // Reference to the impact effect and muzzle flare prefabs
|
|
public float range, timeBetweenShots = .2f, flareDisplayTime = 0.1f, damageAmount = 15f; // Time between shots and flare display duration
|
|
public bool canAutoFire; // Flag to enable or disable auto fire
|
|
public int currentAmmo = 100, clipSize = 20, remainingAmmo = 300, pickupAmount; // Current ammo count, clip size, and remaining ammo
|
|
private UIController uiCon; // Reference to the UIController script for updating ammo text
|
|
}
|