26 lines
718 B
C#
26 lines
718 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()
|
|
{
|
|
InGameInfo.Ins.Show_Effect("Effect_Hit_Skill_EnergySlashFlash", transform.position);
|
|
yield return new WaitForSeconds(0.25f);
|
|
StartCoroutine(Co_Move_Strait(eProjectileStrait.Forward));
|
|
}
|
|
} |