21 lines
513 B
C#
21 lines
513 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BolasProjectile : StraightProjectile
|
|
{
|
|
[Header("Bolas Projectile")]
|
|
[SerializeField]
|
|
private float _slowIntensity = 0.25f;
|
|
[SerializeField, Range(0, float.MaxValue)]
|
|
private float _slowDuration = 5f;
|
|
|
|
protected override void ApplyEffects(Entity target)
|
|
{
|
|
if (target.StatusHandler)
|
|
{
|
|
target.StatusHandler.ApplySlow(_slowIntensity, _slowDuration);
|
|
}
|
|
}
|
|
}
|