summaryrefslogtreecommitdiff
path: root/GameCode/Weapon.cs
blob: d7b81f222fc1c0eef96508758530fc588e56ba79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using UnityEngine;

public abstract class Weapon : MonoBehaviour
{
	public Holdable holdable;

	[HideInInspector]
	public float sinceAttack = 10f;

	private void Start()
	{
		holdable = GetComponent<Holdable>();
	}

	private void Update()
	{
	}

	public abstract bool Attack(float charge, bool forceAttack = false, float damageM = 1f, float recoilMultiplier = 1f, bool useAmmo = true);
}