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()); } private void Update() { transform.position = m_ProjecTileData.shooter.Get_Center_position(); } IEnumerator Co_Update() { var shooter = m_ProjecTileData.shooter; shooter.Set_JoystickStatus(2); 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(1f); Off(true); shooter.Set_JoystickStatus(3); shooter.Play_Idle(); } }