24 lines
709 B
C#
24 lines
709 B
C#
using System.Collections;
|
|
using UnityEngine;
|
|
|
|
public class Skill_ShieldAttack : ProjectileBase
|
|
{
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
_data.eStartPos = eProjectileStartPos.Custom;
|
|
_data.v3_StartPos = _data.shooter.Get_CenterPositionFoward();
|
|
base.Set(_data);
|
|
if (IsStep(1)) m_ProjectTileData.CC_AddTime = Get_AwakenData(1, 1);
|
|
if (IsStep(2)) m_ProjectTileData.CC_AddDmg = Get_AwakenData(2, 1);
|
|
Set_ReduceCoolTime_byStep(3);
|
|
m_ProjectTileData.target.Get_Damage(Get_DamageInfo(true));
|
|
|
|
StartCoroutine(Co_Update());
|
|
}
|
|
|
|
IEnumerator Co_Update()
|
|
{
|
|
yield return new WaitForSeconds(1f);
|
|
Off(true);
|
|
}
|
|
} |