using System.Collections; using UnityEngine; public class Skill_FatalBlow : ProjectileBase { public BoxCollider m_boxcollider; public override void Set(ProjectileData _data) { m_Pierce = true; _data.eStartPos = eProjectileStartPos.Custom; _data.v3_StartPos = _data.target.Get_position(); base.Set(_data); StartCoroutine(Co_Update()); } IEnumerator Co_Update() { m_boxcollider.enabled = false; yield return new WaitForSeconds(0.5f); m_boxcollider.enabled = true; yield return null; yield return null; m_boxcollider.enabled = false; yield return new WaitForSeconds(1f); Off(true); } }