Project_WL/Assets/Script/Character/Projectile/Skill/Skill_SweepAttack.cs

27 lines
711 B
C#

using System.Collections;
using UnityEngine;
public class Skill_SweepAttack : ProjectileBase
{
public GameObject go_effect;
public override void Set(ProjectileData _data)
{
base.Set(_data);
transform.position = _data.shooter.Get_Center_position();
transform.eulerAngles = Vector3.zero;
StartCoroutine(Co_Update());
}
IEnumerator Co_Update()
{
go_effect.SetActive(false);
yield return new WaitForSeconds(0.1f);
go_effect.SetActive(true);
yield return new WaitForSeconds(0.4f);
go_effect.SetActive(false);
go_effect.SetActive(true);
yield return new WaitForSeconds(0.1f);
Off(true);
}
}