23 lines
396 B
C#
23 lines
396 B
C#
using UnityEngine;
|
|
|
|
public class Weapon : MonoBehaviour
|
|
{
|
|
[Header("Identification")]
|
|
public string weaponName;
|
|
[Header("Cache")]
|
|
public bool isAiming;
|
|
public PlayerEntity thisEntity;
|
|
|
|
[Header("Stats")]
|
|
public float damage;
|
|
|
|
public virtual void TryAttack()
|
|
{
|
|
AttackEffects();
|
|
}
|
|
|
|
protected virtual void AttackEffects()
|
|
{
|
|
|
|
}
|
|
}
|