feat: Player

This commit is contained in:
2026-10-07 15:46:51 +02:00
parent 074eb51084
commit d21f0c9b6c
45 changed files with 1801 additions and 74 deletions

View File

@@ -0,0 +1,32 @@
using UnityEngine;
namespace Arena.Combat
{
/// <summary>
/// Settings of a weapon, shared by every launcher that uses it.
/// </summary>
[CreateAssetMenu(fileName = "WeaponData_new", menuName = "Arena/Combat/Weapon Data")]
public class WeaponData : ScriptableObject
{
#region Fields
[Tooltip("Damage dealt by one projectile.")]
[SerializeField, Min(0)] private int _damage = 10;
[Tooltip("Time between two shots, in seconds.")]
[SerializeField, Min(0.05f)] private float _fireInterval = 0.2f;
[Tooltip("Ammo when the weapon is full.")]
[SerializeField, Min(1)] private int _maxAmmo = 30;
[Tooltip("Prefab fired by the weapon.")]
[SerializeField] private Projectile _projectilePrefab;
public int Damage => _damage;
public float FireInterval => _fireInterval;
public int MaxAmmo => _maxAmmo;
public Projectile ProjectilePrefab => _projectilePrefab;
#endregion
}
}