29 lines
894 B
C#
29 lines
894 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Skill_OneHandCombo1 : ProjectileBase
|
|
{
|
|
public List<float> list_ShowEffectTime = new List<float>();
|
|
|
|
public override void Set(ProjectileData _data)
|
|
{
|
|
base.Set(_data);
|
|
StartCoroutine(Co_Update());
|
|
}
|
|
|
|
IEnumerator Co_Update()
|
|
{
|
|
for (int i = 0; i < list_ShowEffectTime.Count; i++)
|
|
{
|
|
yield return new WaitForSeconds(list_ShowEffectTime[i]);
|
|
m_ProjecTileData.eStartPos = eProjectileStartPos.Custom;
|
|
m_ProjecTileData.v3_StartPos = m_ProjecTileData.shooter.Get_CenterPositionFoward();
|
|
m_ProjecTileData.LifeTime = Time.deltaTime;
|
|
ProjectileInfo.Ins.Shoot_Projectile("Projectile_OneHandCombo1", m_ProjecTileData);
|
|
}
|
|
|
|
yield return new WaitForSeconds(1f);
|
|
Off(true);
|
|
}
|
|
} |