28 lines
658 B
C#
28 lines
658 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace DefaultNamespace.Weapons
|
|
{
|
|
[CreateAssetMenu(fileName = "Weapons", menuName = "Data/Weapons", order = 0)]
|
|
public class WeaponsData : ScriptableObject
|
|
{
|
|
[SerializeField]
|
|
private List<Weapon> _weapons;
|
|
|
|
public List<Weapon> WeaponsList => _weapons;
|
|
}
|
|
|
|
[Serializable]
|
|
public struct Weapon
|
|
{
|
|
public GameObject objectToThrow;
|
|
public int manaCost;
|
|
public int damage;
|
|
public float speed;
|
|
public int disnatce;
|
|
public float reloadTime;
|
|
public int shots;
|
|
}
|
|
} |