29 lines
821 B
C#
29 lines
821 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Skill_CrossSlash : ProjectileBase
|
|
{
|
|
public GameObject[] gos_slash; // 베기 이펙트 2종
|
|
public List<float> list_gaptime = new List<float> { 0.25f, 0.4f, 0.35f, 0.425f, 0.45f, 0.45f };
|
|
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
StartCoroutine(Co_Update());
|
|
}
|
|
|
|
IEnumerator Co_Update()
|
|
{
|
|
DSUtil.InActivateGameObjects(gos_slash);
|
|
m_ProjecTileData.shooter.AnimationPlay("paladin_skill2_start");
|
|
for (int i = 0; i < 6; i++)
|
|
{
|
|
yield return new WaitForSeconds(list_gaptime[i]);
|
|
DSUtil.InActivateGameObjects(gos_slash, i % 2);
|
|
}
|
|
|
|
yield return new WaitForSeconds(2f);
|
|
Off(true);
|
|
}
|
|
} |