fixed bug with inspector values

This commit is contained in:
Adam Salah 2025-07-28 21:48:18 -04:00
parent 3a526fe8f4
commit 7f4f5ac7a8
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ public class BolasProjectile : StraightProjectile
[Header("Bolas Projectile")] [Header("Bolas Projectile")]
[SerializeField] [SerializeField]
private float _slowIntensity = 0.25f; private float _slowIntensity = 0.25f;
[SerializeField, Range(0, float.MaxValue)] [SerializeField]
private float _slowDuration = 5f; private float _slowDuration = 5f;
protected override void ApplyEffects(Entity target) protected override void ApplyEffects(Entity target)

View File

@ -6,7 +6,7 @@ using UnityEngine;
public abstract class Projectile : MonoBehaviour public abstract class Projectile : MonoBehaviour
{ {
[Header("Projectile")] [Header("Projectile")]
[SerializeField, Range(0, float.MaxValue)] [SerializeField]
private float _speed = 5.0f; private float _speed = 5.0f;
[SerializeField] [SerializeField]
private DirectionEnum _direction; private DirectionEnum _direction;

View File

@ -5,7 +5,7 @@ using UnityEngine;
public class StraightProjectile : Projectile public class StraightProjectile : Projectile
{ {
[Header("Straight Projectile")] [Header("Straight Projectile")]
[SerializeField, Range(0, int.MaxValue)] [SerializeField]
private int _maxHitEntities = 1; private int _maxHitEntities = 1;
private List<Entity> _hitEntities = new List<Entity>(); private List<Entity> _hitEntities = new List<Entity>();