27 lines
927 B
C#
27 lines
927 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Skill_EnergySlash : ProjectileBase
|
|
{
|
|
[Header("지속 시간")]
|
|
public float lifeTime = 4f;
|
|
[Header("이동 속도")]
|
|
public float speed = 8f;
|
|
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
_data.eStartPos = eProjectileStartPos.ShooterCenter;
|
|
_data.Speed = speed;
|
|
base.Set(_data);
|
|
_data.LifeTime = lifeTime;
|
|
StartCoroutine(Co_Update());
|
|
}
|
|
|
|
IEnumerator Co_Update()
|
|
{
|
|
if (!WL.Combat.Weapon.WLProjectileVisual.HideStartFx(this)) // WL #974 시작 섬광 = 스킬 연출 impact(푸른 WL 사본)가 띄움 → 원본 것은 끔(WLProjectileVisual.json hideStartFx)
|
|
InGameInfo.Ins.Show_Effect("Effect_Hit_Skill_EnergySlashFlash", transform.position);
|
|
yield return new WaitForSeconds(0.25f);
|
|
StartCoroutine(Co_Move_Strait(eProjectileStrait.Forward));
|
|
}
|
|
} |