2025-05-14 18:16:08 +00:00
|
|
|
using System.Collections;
|
2025-01-10 23:44:01 +00:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Skill_EnergySlash : ProjectileBase
|
|
|
|
|
{
|
|
|
|
|
[Header("지속 시간")]
|
|
|
|
|
public float lifeTime = 4f;
|
2025-05-14 18:16:08 +00:00
|
|
|
[Header("이동 속도")]
|
|
|
|
|
public float speed = 8f;
|
2025-01-10 23:44:01 +00:00
|
|
|
|
|
|
|
|
public override void Set(ProjectileData _data)
|
|
|
|
|
{
|
|
|
|
|
_data.eStartPos = eProjectileStartPos.ShooterCenter;
|
2025-05-14 18:16:08 +00:00
|
|
|
_data.Speed = speed;
|
2025-01-10 23:44:01 +00:00
|
|
|
base.Set(_data);
|
|
|
|
|
_data.LifeTime = lifeTime;
|
2025-05-14 18:16:08 +00:00
|
|
|
StartCoroutine(Co_Update());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IEnumerator Co_Update()
|
|
|
|
|
{
|
|
|
|
|
InGameInfo.Ins.Show_Effect("Effect_Hit_Skill_EnergySlashFlash", transform.position);
|
|
|
|
|
yield return new WaitForSeconds(0.25f);
|
2025-01-10 23:44:01 +00:00
|
|
|
StartCoroutine(Co_Move_Strait(eProjectileStrait.Forward));
|
|
|
|
|
}
|
|
|
|
|
}
|