27 lines
694 B
C#
27 lines
694 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Skill_DeathBlade : ProjectileBase
|
|
{
|
|
[Header("단검 속도")]
|
|
public float speed = 4f;
|
|
[Header("단검 유지시간")]
|
|
public float lifetime = 4f;
|
|
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
_data.Speed = speed;
|
|
_data.LifeTime = lifetime;
|
|
_data.eStartPos = eProjectileStartPos.ShooterCenter;
|
|
base.Set(_data);
|
|
_data.Action_OnHit = hitter => { };
|
|
StartCoroutine(Co_Move_Strait(eProjectileStrait.Forward));
|
|
//StartCoroutine(Co_Update());
|
|
}
|
|
|
|
IEnumerator Co_Update()
|
|
{
|
|
yield return new WaitForSeconds(0.2f);
|
|
Off(true);
|
|
}
|
|
} |