22 lines
432 B
C#
22 lines
432 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
[CreateAssetMenu(fileName = "Weapon", menuName = "Weapon/Weapon", order = 0)]
|
||
|
public class Weapon : ScriptableObject
|
||
|
{
|
||
|
[SerializeField]
|
||
|
private float damage = 20f;
|
||
|
[SerializeField]
|
||
|
private float fireRate = 0;
|
||
|
|
||
|
public float getDamage(){
|
||
|
return damage;
|
||
|
}
|
||
|
|
||
|
public float getFireRate(){
|
||
|
return fireRate;
|
||
|
}
|
||
|
|
||
|
}
|