2025-01-14 06:51:57 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class Skill_SweepAttack : ProjectileBase
|
|
|
|
|
{
|
|
|
|
|
public GameObject go_effect;
|
|
|
|
|
|
|
|
|
|
public override void Set(ProjectileData _data)
|
|
|
|
|
{
|
|
|
|
|
base.Set(_data);
|
|
|
|
|
transform.eulerAngles = Vector3.zero;
|
|
|
|
|
StartCoroutine(Co_Update());
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-03 23:06:28 +00:00
|
|
|
private void Update()
|
|
|
|
|
{
|
|
|
|
|
transform.position = m_ProjecTileData.shooter.Get_Center_position();
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-14 06:51:57 +00:00
|
|
|
IEnumerator Co_Update()
|
|
|
|
|
{
|
2025-02-19 04:56:56 +00:00
|
|
|
var shooter = m_ProjecTileData.shooter;
|
|
|
|
|
shooter.Set_JoystickStatus(2);
|
2025-01-14 06:51:57 +00:00
|
|
|
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);
|
2025-01-14 07:18:10 +00:00
|
|
|
yield return new WaitForSeconds(1f);
|
2025-01-14 06:51:57 +00:00
|
|
|
Off(true);
|
2025-05-03 23:06:28 +00:00
|
|
|
shooter.Set_JoystickStatus(3);
|
|
|
|
|
shooter.Play_Idle();
|
2025-01-14 06:51:57 +00:00
|
|
|
}
|
|
|
|
|
}
|