too many if statements
This commit is contained in:
parent
533f137c48
commit
17b1a1e367
7 changed files with 55 additions and 20 deletions
|
|
@ -2,8 +2,15 @@ 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue